Functions and vectors are both objects in R, but a functions are not vectors
try this foo<-function() print("I'm the foo function") is.vector(foo) as.vector(foo) Justin BEM BP 1917 Yaoundé Tél (237) 99597295 (237) 22040246 ________________________________ De : Edna Bell <edna.bel...@gmail.com> À : r-h...@stat.math.ethz.ch Envoyé le : Jeudi, 19 Mars 2009, 17h49mn 32s Objet : [R] function question Dear R Gurus: I read somewhere that functions are considered vectors. Is this true, please? thanks Edna Bell ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.