Not to my knowledge. In some cases an argument to a function can take on different types, especially S3 methods. The only sure way is to read the help page (or if necessarily, the code).
This is one thing that stumbles me sometimes: Some help pages describes what the argument does, but not what it needs to be. In some cases it may be obvious, but not all... Andy > From: Georg Hoermann > > Hello world, > > short question: is there a possibility to get a list of > arguments of a function *with* variable/parameter types? > > formals() gives me the names of the parameters, but says > nothing about the parameter type it expects (I know I can > always use the > help function). > > I would like somthing like > > $x: vector or data.frame... > > Thanks in advance... > > Georg > > > -- > Georg Hoermann, Fachabteilung Wasserwirtschaft / Dep. Hydrology > Ecosystem Research Center, Kiel University, Germany, Penguin #189476 > Tel. 0431-880-1207, 0172/4315715, ICQ: 348340729, MSN: hlschorsch > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
