View source: R/bruceR-stats_1_basic.R
| scaler | R Documentation | 
This function resembles RESCALE()
and it is just equivalent to RESCALE(var, to=0:1).
scaler(v, min = 0, max = 1)
v | 
 Variable (numeric vector).  | 
min | 
 Minimum value (defaults to 0).  | 
max | 
 Maximum value (defaults to 1).  | 
A vector of rescaled variable.
scaler(1:5)
# the same: RESCALE(1:5, to=0:1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.