Learn R Programming

dispRity (version 1.8)

scale.dispRity: Rescaling and centering disparity results.

Description

Scales or/and centers the disparity measurements.

Usage

# S3 method for dispRity
scale(x, center = FALSE, scale = TRUE, ...)

Arguments

x

a dispRity object.

center

either a logical value or a numeric vector of length equal to the number of elements of data (default is FALSE).

scale

either a logical value or a numeric vector of length equal to the number of elements of data (default is TRUE).

...

optional arguments to be passed to scale.

Author

Thomas Guillerme

Details

To scale or and center using the full distribution (i.e. all the disparity values) or only the distribution within each subsets of bootstraps you can use the optional argument use.all as a logical. By default is use.all = TRUE and uses all the disparity values not only the ones in the subset.

See Also

dispRity, test.dispRity, scale.

Examples

Run this code
## Load the disparity data based on Beck & Lee 2014
data(disparity)

## Scaling the data
summary(scale.dispRity(disparity, scale = TRUE)) # Dividing by the maximum
## Multiplying by 10 (dividing by 0.1)
summary(scale.dispRity(disparity, scale = 0.1))

Run the code above in your browser using DataLab