normalize: Normalize vector so that the data has a range from 0 to 1

View source: R/general_tools.R

normalizeR Documentation

Normalize vector so that the data has a range from 0 to 1

Description

Normalize vector so that the data has a range from 0 to 1

Usage

normalize(x, na.rm = TRUE)

Arguments

x

a numeric vector

Value

the normalized vector and the sum of the original vector as attribute (to back-transform later)


simschul/my.utils documentation built on June 29, 2023, 6:50 a.m.