anocva (version 0.1.1)

checkRange01: Check for 0,1 Interval Normalization.

Description

Verifies if the data is normalized in the range 0,1. If they are not, the normalization is performed and a warning issued.

Usage

checkRange01(data)

Arguments

data

A matrix of data

Value

The data matrix normalized in the range 0,1.

Examples

Run this code
# NOT RUN {
set.seed(2000)

simuData = runif(100, min = 0.5, max=7)
sprintf("The minimum value is %.2f and the maximum is %.2f.", min(simuData), max(simuData))

simuData = checkRange01(simuData)
sprintf("Now the minimum value is %.2f and the maximum is %.2f.", min(simuData), max(simuData))

# }

Run the code above in your browser using DataCamp Workspace