Skip to content
Prev 206914 / 398503 Next

Please Please Please Help me!!

Hello
On Wed, Jan 20, 2010 at 7:00 AM, Madhavi Bhave <madhavi_bhave at yahoo.com> wrote:
I am not sure that this would be the most efficient, but see if
something similar does the job for you:
x <- matrix(NA, 5,2); x
for (i in 1:5){
    x1 <- cbind(mean(rnorm(100)), mean(runif(100)))  ## use duration()
instead of cbind() and r*() funs
    x[i, ] <- x1
}
x

Liviu