sts_normalize: sts_normalize

View source: R/sts_normalize.R

sts_normalizeR 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)

kdry documentation built on July 4, 2024, 9:07 a.m.

Related to sts_normalize in kdry...