[R] how to loop thru a matrix or data frame , and append calculations to a new data frame?

Robert Wilkins robstdev at gmail.com
Fri Oct 30 16:46:31 CET 2009


How do you do a double loop through a matrix or data frame , and
within each iteration , do a calculation and append it to a new,
second data frame?
(So, if your original matrix or data frame is 4 x 5 , then 20
calculations are done, and the new data frame, which had 0 rows to
start with, now has 20 rows)




More information about the R-help mailing list