Dear list,

I have to use a list of lists containing vectors.

For instance :

[[1]]
[[1]][[1]]
[1] 1 2 3

[[1]][[2]]
[1] 3 2 1

I want to attribute vectors to the main list

without use of an intermediate list,

but it does not work :

x <- list()
x[[1]][[1]] <- c(1, 2, 3)
x[[1]][[2]] <- c(3, 2, 1)

Thanks in advance,
Carlos

______________________________________________
R-help@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.

Reply via email to