Learn R Programming

dispRity (version 1.7.0)

rescale.dispRity: Rescaling and centering disparity results.

Description

Scales or/and centers the disparity measurements.

Usage

# S3 method for dispRity
rescale(data, center = FALSE, scale = TRUE, use.all = TRUE, ...)

Arguments

data

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).

use.all

logical, whether to scale/center using the full distribution (i.e. all the disparity values) or only the distribution within each subsets of bootstraps (default is TRUE).

...

optional arguments to be passed to scale.

Author

Thomas Guillerme

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(rescale.dispRity(disparity, scale = TRUE)) # Dividing by the maximum
## Multiplying by 10 (dividing by 0.1)
summary(rescale.dispRity(disparity, scale = 0.1))

Run the code above in your browser using DataLab