[R] Getting *types* of arguments?

2005-02-17 Thread 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

Re: [R] Getting *types* of arguments?

2005-02-17 Thread Jan T. Kim
On Thu, Feb 17, 2005 at 11:44:59AM +0100, Georg Hoermann wrote: 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

RE: [R] Getting *types* of arguments?

2005-02-17 Thread Liaw, Andy
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

Re: [R] Getting *types* of arguments?

2005-02-17 Thread Prof Brian Ripley
On Thu, 17 Feb 2005, Georg Hoermann wrote: Hello world, short question: is there a possibility to get a list of arguments of a function *with* variable/parameter types? Do you mean `argument' or `formal argument' or `parameter' or `variable'? formals() gives me the names of the parameters, but

RE: [R] Getting *types* of arguments?

2005-02-17 Thread Prof Brian Ripley
On Thu, 17 Feb 2005, Liaw, Andy wrote: 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