[R] A coding question involving variable assignments

From: xpRt.wannabe <xprt.wannabe_at_gmail.com>
Date: Fri 12 Aug 2005 - 05:55:45 EST


Dear List,

I have the following code that does what I want:

x <- replicate(5,replicate(10,sum(rnorm(rpois(1,10)))))

How might one change it such that the maximum value generated by rnorm(rpois(1,10)) can be retrieved for later use?



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 12 06:00:36 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:47 EST