How to check all arguments of a function in R

Usually in the html help of a package in the argument list R ends with

........ other arguments passed.

but how can we print all the arguments of a function in R.

+3


source to share


1 answer


If I understand your question correctly, then I tend to say: most of the time it is impossible to specify all the possible arguments that can be passed in the ...

'function section .

Look at a very simple function ?plot

. There on the help page only two arguments are listed x

and y

. However, ...

there are a number of additional possible arguments. Most of them (on the help page) contain graphical options. In case ?lm

I understand that the arguments in ...

are passed to lm.fit

and lm.wfit

. Check these help pages to see what options do these functions.



My guess is that the main problem is that you need to check ALL functions that can be passed in arguments ...

to know ALL possible arguments that can be passed to ...

. Since the number of functions can be very large, the number of arguments working in ...

can be very large. Therefore, we do not want them to be on the "top level" help page.

I hope this made sense ...

+1


source







All Articles