From: xpRt.wannabe <xprt.wannabe_at_gmail.com>

Date: Fri 12 Aug 2005 - 10:24:10 EST

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 10:30:25 2005

Date: Fri 12 Aug 2005 - 10:24:10 EST

Jim and List,

Thank you for the prompt reply. Perhaps I should have been more specific in the way I phrased the question.

The code you gave would return the max value just one time. I was interested in getting as many max values generated by rnorm(rpois(1,10)) as specified by:

*> replicate(5,replicate(10 ... )))))
*

In the end, I expect to get 10 x 5 max values.

In that context, how might the code be changed?

On 8/11/05, jim holtman <jholtman@gmail.com> wrote:

*> temp <- rnorm(rpois(1,10))
**> x <- replicate(5,replicate(10,sum(temp)))
**> temp <- max(temp)
**>
**> On 8/11/05, xpRt.wannabe <xprt.wannabe@gmail.com> wrote:
*

> > 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
**> >
**>
**>
**> --
**> Jim Holtman
**> Convergys
**> +1 513 723 2929
**>
**> What the problem you are trying to solve?
**>
*

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 10:30:25 2005

*
This archive was generated by hypermail 2.1.8
: Sun 23 Oct 2005 - 15:15:38 EST
*