Learn R Programming

demcon (version 0.4.0)

range01: Standardize a Variable to 0-1

Description

Standardize a vector to 0-1 using the cumulative distribution function of the normal distribution.

Usage

range01(x)

Value

A standardized numeric vector scaled to 0-1.

Arguments

x

A vector of numeric values.

Examples

Run this code

nums<-rnorm(50, 6.5, 3)

nums<-demcon::range01(nums)

Run the code above in your browser using DataLab