Re: [R] Changing data scales

2011-08-22 Thread Jim Lemon
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

Re: [R] Changing data scales

2011-08-21 Thread Joshua Wiley
On Sun, Aug 21, 2011 at 5:50 PM, Jorge I Velez wrote: > On 8/21/11 8:04 PM, 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? >> > Take a look at ?scale Which leads one to: scale(x, .3, 1.7) but this i

Re: [R] Changing data scales

2011-08-21 Thread Jorge I Velez
On 8/21/11 8:04 PM, 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? Take a look at ?scale HTH, Jorge __ R-help@r-project.org mailing list https://stat.ethz.ch/mailma

[R] Changing data scales

2011-08-21 Thread Jim Silverton
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? -- Thanks, Jim. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he