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

______________________________________________
R-help@stat.math.ethz.ch 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