[R] create an object list in a loop

AlessandroSemeria@cramont.it AlessandroSemeria at cramont.it
Mon Oct 28 18:31:48 CET 2002

Thanks at all for yours precious help. My mistake had origin from the bad
use of '<- ' .
 I thought  (from R-help pages) ' <- ' and 'assign' statements as synonyms.
Evidently I'm not feel with "R-mind", in fact  the suggestion done
by Peter Dalgaard :

aval <- lapply(1:n, function(i) matrix(.....))

is good, it work, but reading R-help ("lapply(X, FUN, ...)....") is not so
clear for me
how this work. Bye

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list