[R] Pairlist of pairlsit assembly howto

Johannes Graumann johannes_graumann at web.de
Sun Jul 15 16:00:41 CEST 2007


Hy guys,

I'm trying something like this

minbins <- list()
for (minute in sequence(3)) {
        minbins[minute] <- list(data="a",variable="b")
}

And it doesn't work ...
Warning messages:
1: number of items to replace is not a multiple of replacement length in:
minbins[minute] <- list(data = "a", variable = "b") 
2: number of items to replace is not a multiple of replacement length in:
minbins[minute] <- list(data = "a", variable = "b") 
3: number of items to replace is not a multiple of replacement length in:
minbins[minute] <- list(data = "a", variable = "b")

What am I doing wrong and how to do this properly?

Thanks, Joh



More information about the R-help mailing list