[R] Generate Numbers

Bernardo Rangel Tura tura at centroin.com.br
Sun Apr 4 14:01:46 CEST 2010


On Sun, 2010-04-04 at 04:03 -0700, kende jan wrote:
> Hello,
> How can I generate randomly in R a sample of skewed data with first quartile is 540 and third quartile is 715.
> I need a sample of 100 cases.
> 
> Thank you for your help
> 
> Jan
> 



Hi Jan, 

Sorry my direct approach but why you don't use

data <- c(runif(25,number,540),runif(50,540,715),runif(25,715,number))

-- 
Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology
Brazil



More information about the R-help mailing list