Re: [R] RNORM matrix based on CSV file values for MEAN and SD

2012-05-22 Thread R. Michael Weylandt
On Tue, May 22, 2012 at 12:40 PM, dcoakley wrote: > Thanks Michael, > > This seems to get me half-way towards a solution. However, I am still having > some difficulty in getting the out.csv exactly as I would like. I should > probably explain the issue a bit further. > > I am reading in a csv file

Re: [R] RNORM matrix based on CSV file values for MEAN and SD

2012-05-22 Thread dcoakley
Thanks Michael, This seems to get me half-way towards a solution. However, I am still having some difficulty in getting the out.csv exactly as I would like. I should probably explain the issue a bit further. I am reading in a csv file containing a list of 'n' parameters. I have attached a csv ( h

Re: [R] RNORM matrix based on CSV file values for MEAN and SD

2012-05-22 Thread R. Michael Weylandt
No CSV came through so I'll just assume you get in a data.frame from read.csv() that looks something like this params <- data.frame(mean = c(1,4,7), sd = c(2,2,5)) and you want 10 samples from each. If you're on memory constraints, you can simply loop over rows and append to a growing CSV. for(i

[R] RNORM matrix based on CSV file values for MEAN and SD

2012-05-22 Thread dcoakley
This should (hopefully) be a pretty simple task. What I'd like to do is read in a csv file containing means and standard deviations for a large number of 'n' parameters (up to 2000). The list would be in the following format (see attached read.csv): Paramter(1), mean, standard dev., Paramter(2), m