[R] Creating list with increasing string lengths
Nia Gupta
nia_gupta at yahoo.com
Sat Jun 13 17:04:50 CEST 2015
Hello,
I am trying to create a list where each name would have an increasing vector length. For example, I am trying to obtain something that looks like this:
[[1]][1] 2
[[2]]
[1] 2 4
[[3]]
[1] 1 2 3
.....
The numbers generated would just be any random numbers. My thought was to use a for-loop and the sequence function but that doesn't seem to be working. Any help on this would be greatly appreciated.
Thank you,
Nia
[[alternative HTML version deleted]]
More information about the R-help
mailing list