How can you pass multiple arguments to a function in R?

How can you pass multiple arguments to a function in R?

a) Using a list
b) Using the c() function
c) Passing them as individual parameters
d) Using a matrix

Answer:

c) Passing them as individual parameters

Explanation:

Multiple arguments are passed to a function by specifying them individually, separated by commas, in the function call.

Reference:

R Programming – Functions MCQ Questions and Answers

Scroll to Top