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
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
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
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
4 matches
Mail list logo