Skip to content
Prev 206221 / 398503 Next

How can I store the results

On Wed, 2010-01-13 at 15:59 +0100, Alex Roy wrote:
In a list?

results <- vector(mode = "list, length = 100)
for(i in seq_along(results) {
    ## do something
    ## ....
    ## store result for iteration i
    results[[i]] <- something
}

results will now contain 100 matrices of dim 160x10.

HTH

G