sort.dispRity {dispRity}R Documentation

Sorting or ordering a dispRity object.

Description

Sort (or order) the subsets of a dispRity object.

Usage

## S3 method for class 'dispRity'
sort(x, decreasing = FALSE, sort, ...)

Arguments

x

A dispRity object.

decreasing

logical. Should the sort be in ascending or descending order? Is ignored if sort is used.

sort

An optional vector of numeric values corresponding to the order in which to return the subsets.

...

optional arguments to be passed to sort.

Author(s)

Thomas Guillerme

See Also

dispRity, test.dispRity, plot.dispRity, get.subsets, get.disparity.

Examples

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

## Sorting the data
summary(disparity)
summary(sort(disparity, decreasing = TRUE))
summary(sort(disparity, sort = c(7,1,3,4,5,2,6)))


[Package dispRity version 1.8 Index]