[R] Error propagation

Christian Ritz
Fri, 08 Feb 2008 21:18:43 -0000

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