2009/3/4 Daniel Nordlund <djnordl...@verizon.net>:
> Something like this may help get you started.
>
> std.pop <- function(x,mu,stdev){
>  ((x-mean(x))/sd(x)*stdev)+mu
>  }
>
> population <- std.pop(rnorm(1000),10,5)
>
> Hope this is helpful,
>
> Dan

Very helpful. I hadn't thought of a simple roll-your-own approach, and
was instead trying to find something built-in. Thanks.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to