sts_normalize {kdry}R Documentation

sts_normalize

Description

Statistic helper function to normalize a continuous variable between zero and one.

Usage

sts_normalize(x, na.rm = FALSE)

Arguments

x

A vector of type numeric.

na.rm

A logical to indicate, if missings should be removed.

Value

Returns a vector of same length as x with values normalized between zero and one. If x contains missings and na.rm = TRUE, the missings are removed before normalization; otherwise, a vector of NA is returend.

Examples

sts_normalize(1:100)

[Package kdry version 0.0.2 Index]