[R] Error propagation

Christian Ritz ritz at life.ku.dk
Fri Feb 8 22:18:43 CET 2008


Hi Steve,

I think you need to use apply() as in the following tiny example:


x <- data.frame(response = c(-121,-131,-135))
apply(x, 1, function(response){rnorm(10, mean = response, sd = 
rnorm(10, mean = 9.454398, sd = 1.980136))})


Christian



More information about the R-help mailing list