and in addition to bill's suggestion, you may want to consider not growing a list.
Instead of 'v <- list()', use: v <- vector("list", nrow(A)) b > Will your code work as you wish if you > replace the "for(v[[1]] in x[[1]]) { ... }" > with the following? > for(i in x[[1]]) { > v[[2]] <- i > ... > } > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com ______________________________________________ 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.