rescale.dispRity: Rescaling and centering disparity results.

View source: R/dispRity.utilities.R

rescale.dispRityR Documentation

Rescaling and centering disparity results.

Description

Scales or/and centers the disparity measurements.

Usage

## S3 method for class '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(s)

Thomas Guillerme

See Also

dispRity, test.dispRity, scale.

Examples

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


dispRity documentation built on Aug. 9, 2022, 5:11 p.m.