Re: [R] R code for creating and appending to frequency table

2009-09-09 Thread jim holtman
If the result of the 'table' is a different length each time, then you will have to consider the use of a list. If it is the same length, then something like this should work results <- matrix(ncol=50, nr=10) for (i in 1:50) results[,i] <- your computation for table On Wed, Sep 9, 2009 at 12:40

[R] R code for creating and appending to frequency table

2009-09-09 Thread drlucyasher
Apologies for what might seem like an simple question. I have written a model which gives me a frequency distribution for a particular score within a set. What I now want to do is loop this so that I get many different frequency distributions and append them to a table with a collum which specifi