On 08/22/2011 10:04 AM, Jim Silverton wrote:
I have data that ranges from 0.3 to 2 and I want to change the scale to be
from 0 to 1.
Can this be done in R?

Hi Jim,

library(prettyR)
rescale(x,c(0,1))

will linearly transform x into the specified range.

Jim

______________________________________________
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