Learn R Programming

multiDimBio (version 1.2.5)

PercentMax: A function to scale data to the percent of the maximum observed

Description

This function rescales the columns in a data matrix to the percent of the maximum observed value. The variance is not scaled and missing values are ignored in the calculation.

Usage

PercentMax(DATA)

Value

Returns a matrix with the same dimensions as DATA.

Arguments

DATA

A (non-empty) matrix with data values. Columns should be different traits and rows unique observations of those traits

See Also

ZTrans, MeanCent

Examples

Run this code
data(Nuclei)

colMeans(Nuclei, na.rm=TRUE)

Nuclei.PM<-PercentMax(Nuclei)

colMeans(Nuclei.PM, na.rm=TRUE)

Run the code above in your browser using DataLab