scale_to_unit: Transform values by scaling to the unit interval

Description Usage Arguments Details Value

View source: R/bound.R

Description

Transform values by scaling to the unit interval

Usage

1

Arguments

vals

A numeric vector corresponding to the observed values of the variable of interest, to be re-scaled to the unit interval [0,1].

Details

A transformation that scales an arbitrary set of input values to the unit interval. See scale_to_original for a corresponding backtransformation.

Value

A numeric vector of the same length as vals, where the values are re-scaled to lie in unit interval [0, 1].


txshift documentation built on Oct. 23, 2020, 8:27 p.m.