resca: Rescale a continuous vector to have specified minimum and...

Description Usage Arguments Author(s) Examples

View source: R/resca.R

Description

Helper function used in the WAASB package. It rescales a continuous vector to have specified minimum and maximum values. Missing values are not allowed.

Usage

1
resca(values, new_min = 0, new_max = 100)

Arguments

values

continuous vector of values to manipulate.

new_min

The minimum value of the new scale. Default is 0.

new_max

The maximum value of the new scale. Default is 100

Author(s)

Tiago Olivoto [email protected]

Examples

1
2
resca(1:10)
resca(c(20, 30, 40), new_min = 5, new_max = 10)

TiagoOlivoto/WAASB documentation built on April 1, 2019, 10:25 a.m.