Sunday, 18 August 2013

How to map a vector to a different range in R?

How to map a vector to a different range in R?

I have a vector in the range [1,10]
c(1,2,9,10)
and I want to map it to a different range, for example [12,102]
c(12,22,92,102)
Is there a function that already does this in R?

No comments:

Post a Comment