Skip to content
Prev 177937 / 398502 Next

Subsetting a vector of numerics such that standard deviation is less than 0.5 ?

Daren,
what are you trying to achieve?
Why don't you want any negative numbers?
Anyway, if you only need positive values, why not:
set.seed(999)
v<-rnorm(20,mean=2,sd=0.5)
(v)
(sd(v))

Dimitri
On Wed, Apr 22, 2009 at 1:26 AM, Daren Tan <darentan76 at gmail.com> wrote: