powered by
rescales a vector.
rescale(x, lb = min(x), ub = max(x))
a numeric vector.
numeric. lower bound.
numeric. upper bound.
rescale returns rescaled vector.
rescale
sf, primes, and halton.
sf
primes
halton
# NOT RUN { require( npsf ) # obtain first 30 prime numbers set.seed(8265897) t1 <- runif(10, min = 1, max = 2) summary(t1) summary(rescale(t1, 0, 10)) # }
Run the code above in your browser using DataLab