Learn R Programming

funModeling (version 1.6.8)

range01: Transform a variable into the [0-1] range

Description

Range a variable into [0-1], assigning 0 to the min and 1 to the max of the input variable. All NA values will be removed.

Usage

range01(var)

Arguments

var

numeric input vector

Value

vector with the values scaled into the 0 to 1 range

Examples

Run this code
# NOT RUN {
range01(mtcars$cyl)
# }

Run the code above in your browser using DataLab