[R] How can I create a vector of vector?
stephen sefick
ssefick at gmail.com
Fri Aug 8 21:26:03 CEST 2008
is this what you want?
x <- c(31,2,3)
y <- c(1,2,5,34,5656)
z <- c(211,3243,5,343,3)
a <- list(x,y,z)
On Fri, Aug 8, 2008 at 1:59 PM, Jim <chunchiliu at gmail.com> wrote:
> Dear All,
>
> How can I create a vector of vector in R?
> for example, I would input the data as follows:
> x[1] <- c(31,2,3)
> x[2] <- c(1,2,5,34,5656)
> x[3] <- c(211,3243,5,343,3)
>
> Jim Liu
>
> ______________________________________________
> R-help at 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.
>
--
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted the
annoying little problems of being mammals.
-K. Mullis
More information about the R-help
mailing list