View source: R/dispRity.utilities.R
scale.dispRity | R Documentation |
Scales or/and centers the disparity measurements.
## S3 method for class 'dispRity'
scale(x, center = FALSE, scale = TRUE, ...)
x |
a |
center |
either a |
scale |
either a |
... |
optional arguments to be passed to |
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.
Thomas Guillerme
dispRity
, test.dispRity
, scale
.
## 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.