Skip to content
Back to formatted view

Raw Message

Message-ID: <4992CF81.8070001@ufl.edu>
Date: 2009-02-11T13:15:45Z
From: Ben Bolker
Subject: Generating Numbers With Certain Distribution in R
In-Reply-To: <1234344106.14671.30.camel@R1-Thux>

Bernardo Rangel Tura wrote:

> I think your routine need a little fix
> 
> x <- rlnorm(1e6,meanlog=1,sdlog=1) ## pick any parameters you like
> y <- round((x-min(x)/diff(range(x)))*199999+1)
> 
> What you think?

  Yes.