col_minmax: Scale numeric vector between 0 and 1

Description Usage Arguments Value Examples

View source: R/pre_processing.R

Description

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

Usage

1

Arguments

x

A numeric vector or column.

Value

Vector scaled between 0 and 1

Examples

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

rMIDAS documentation built on Jan. 30, 2021, 9:05 a.m.