Skip to content
Prev 86520 / 398521 Next

arrays of lists in R ("cell arrays" in Matlab)

Try this:

L <- list(sqrt, letters, pi, 1:4)
dim(L) <- c(2,2)
L[[1,1]](4) # 2
On 2/15/06, Giuseppe Pagnoni <gpagnon at emory.edu> wrote: