Learn R Programming

templr (version 0.2-0)

to01: Helper function to scale from [min,max] to [0,1]

Description

Helper function to scale from [min,max] to [0,1]

Usage

to01(X, inp)

Value

X scaled in [0,1]

Arguments

X

values to scale

inp

list containing 'min' and 'max' values

Examples

Run this code
to01(10+10*data.frame(x=matrix(runif(10))),list(x=list(min=10,max=20)))

Run the code above in your browser using DataLab