Learn R Programming

rMIDAS (version 1.0.0)

col_minmax: Scale numeric vector between 0 and 1

Description

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

Usage

col_minmax(x)

Value

Vector scaled between 0 and 1

Arguments

x

A numeric vector or column.

Examples

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

Run the code above in your browser using DataLab