The R function to calculate the factorial of a number is ________.
- fact()
- factorial()
- multiplication()
- product()
The factorial() function in R is used to calculate the factorial of a number. For example, factorial(5) would return 120 because 5 factorial (5!) is 54321 = 120.
Loading...
Related Quiz
- The switch() function in R can be used as an alternative to multiple ________ if statements.
- To assign a numeric value to a variable in R, you can use the syntax variable_name <- ________.
- Can you import CSV data into R?
- What are the basic data types in R?
- What is the result of the logical operation 'TRUE OR FALSE' in R?