col_minmax: Scale numeric vector between 0 and 1

View source: R/pre_processing.R

col_minmaxR Documentation

Scale numeric vector between 0 and 1

Description

Helper function to scale numeric variables. Aids convergence of Midas model.

Usage

col_minmax(x)

Arguments

x

A numeric vector or column.

Value

Vector scaled between 0 and 1

Examples

ex_num <- runif(100,1,10)
scaled <- col_minmax(ex_num)

rMIDAS documentation built on Oct. 11, 2023, 5:14 p.m.