[R] display full form in args

Adaikalavan Ramasamy ramasamy at cancer.org.uk
Fri Feb 25 13:14:00 CET 2005


Forgive me for I do not fully comprehend the idea of classes and methods
but I was wondering if someone could help explain why the function args
() behaves the way it does.

Why does args(cut) show the simplified version instead of the more
complete one as in help("cut"). This is true for few other functions
(e.g. plot, rep).

 > args(cut)
 function (x, ...) 


Sometime I can get around this by using the "default" method as in

 > args(cut.default) 
 function (x, breaks, labels = NULL, include.lowest = FALSE, right =
TRUE, dig.lab = 3, ...) 


But sometimes I cannot use this workaround. e.g. args(merge.default)
does not give the full form as in the help file.


I find it almost always useful to see the full form. Is there a more
reliable workaround or do I have to look up the help to be certain.

Thank you.

Regards, Adai




More information about the R-help mailing list