Description Usage Arguments Details Value Examples
| 1 2 3 4 5 | scale_range(x, to, na.rm = getOption("transx.na.rm"))
scale_minmax(x, na.rm = getOption("transx.na.rm"))
scale_unit_len(x, na.rm = getOption("transx.na.rm"))
 | 
| x | 
 Univariate vector, numeric or ts object with only one dimension. | 
| to | 
 Values that will determine the output range. | 
| na.rm | 
 A value indicating whether NA values should be stripped before the computation proceeds. | 
To rescale a range between an arbitrary set of values [a, b], the formula becomes:
Returns a vector with the same class and attributes as the input vector.
| 1 2 3 | x <- c(10,5,1,-2)
scale_range(x, c(-1, 2))
scale_minmax(x)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.