[R] List or matrix of object

Filoche pmassicotte at hotmail.com
Tue Oct 12 17:17:29 CEST 2010


Hi everyone.

Is it possible in R to create a matrix or a list (vector) or R object. For
instance, I have

f1 <- function(x) sqrt(x%*%x);
f2 <- function(x) (2x+1);

I would like to do something like 

L <- List();
L[1] = f1;
L[2] = f2;

So, is there a way to create matrix or vector that can contains R object.

With regards,
Phil
-- 
View this message in context: http://r.789695.n4.nabble.com/List-or-matrix-of-object-tp2992101p2992101.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list