[R] function question

Duncan Murdoch murdoch at stats.uwo.ca
Thu Mar 19 18:03:36 CET 2009


On 3/19/2009 12:49 PM, Edna Bell wrote:
> Dear R Gurus:
> 
> I read somewhere that functions are considered vectors.
> 
> Is this true, please?

Your question is a little ambiguous (you probably did read that, and 
probably someone does consider them to be vectors), but I think the 
right answer is no:  when the R documentation talks about vectors, it is 
not talking about functions, and the is.vector() function returns FALSE 
for functions.

Duncan Murdoch




More information about the R-help mailing list