scale: Scale vector from 0 to 1

View source: R/utils.R

scaleR Documentation

Scale vector from 0 to 1

Description

Note that vector with all the same values will be filled with 0.5.

Usage

scale(vec, na_rm = TRUE)

Arguments

vec

vector with numbers

na_rm

flag stating whether to ignore NA values or not

Value

vector with scaled values

See Also

Other scaling: zscore()


dokato/natML documentation built on Sept. 12, 2022, 6:04 a.m.