[R-SIG-Finance] nested matrices

R. Michael Weylandt michael.weylandt at gmail.com
Mon May 20 09:49:31 CEST 2013


As best as I know the Matlab 'cell array', you might want to consider
adding dimensionality to a list object:

x <- list(1:4, "cow", lm, 0.25)
dim(x) <- c(2,2)

Then you can do:

x[[2,2]] + 1

x[[1,2]](rnorm(25) ~ rexp(25))

None too financey

etc.

MW

On Mon, May 20, 2013 at 8:37 AM, Yana Roth <yana.roth at yahoo.com> wrote:
> Hello,I was reading the tread about R equivalent of cell array in Matlab and still couldn't understand how can you systematically  organize large set of data as cell arrays in R.
> would appreciate your help
>
> Yana
>         [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



More information about the R-SIG-Finance mailing list