Skip to content
Prev 237763 / 398500 Next

List or matrix of object

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