Re: [R] Generation of Normal Random Numbers

2011-01-11 Thread Amelia Vettori
Dear Mr Bedward and Mr Newmiller, Thanks a lot for the guidance. Really appreciated. Sagga K --- On Tue, 11/1/11, Michael Bedward wrote: From: Michael Bedward Subject: Re: [R] Generation of Normal Random Numbers To: "saggak" Cc: r-help@r-project.org Received: Tuesday, 11 January,

Re: [R] Generation of Normal Random Numbers

2011-01-11 Thread Michael Bedward
Sagga K > > --- On *Tue, 11/1/11, Michael Bedward * wrote: > > > From: Michael Bedward > Subject: Re: [R] Generation of Normal Random Numbers > To: "saggak" > Cc: r-help@r-project.org > Received: Tuesday, 11 January, 2011, 7:24 AM > > m <- c(1004

Re: [R] Generation of Normal Random Numbers

2011-01-10 Thread Jeff Newmiller
So you need to cbind the four vectors together... ?cbind "saggak" wrote: >Dear R helpers > >I have a data frame as given below > >df = data.frame(A = c(776,827,836,995,855,1026,1203,1363,965,1195), >�� B = >c(806,953,1049,1056,1243,764,1148,1162,948,1154), >��

Re: [R] Generation of Normal Random Numbers

2011-01-10 Thread Michael Bedward
m <- c(1004.1, 1028.3, 1044.3, 861.4) s <- c(194.5899, 158.7052, 123.3000, 285.8695) x <- mapply(function(mi, si) rnorm(25, mi, si), m, s) Hope this helps, Michael On 11 January 2011 17:44, saggak wrote: > Dear R helpers > > I have a data frame as given below > > df = data.frame(A = c(776,827,

[R] Generation of Normal Random Numbers

2011-01-10 Thread saggak
Dear R helpers I have a data frame as given below df = data.frame(A = c(776,827,836,995,855,1026,1203,1363,965,1195),    B = c(806,953,1049,1056,1243,764,1148,1162,948,1154),    C = c(959,1155,1193,1163,863,1070,1087,877,1132,944),    D