Learn R Programming

dispRity (version 1.5.0)

matrix.dispRity: Fetching a matrix from a dispRity object.

Description

Fetching a specific matrix from a dispRity object.

Usage

matrix.dispRity(data, subsets, rarefaction, bootstrap, matrix = 1)

Arguments

data

A dispRity object.

subsets

Optional, a numeric value to select subsets.

rarefaction

Optional, a numeric value to select the rarefaction level (0 is no rarefaction).

bootstrap

Optional, a numeric value to select a specific bootstrap draw (0 is no bootstrap).

matrix

A numeric value of which matrix to select (default is 1).

Examples

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

## To get the original matrix
matrix.dispRity(disparity)

## To get the un-bootstrapped matrix from the subset called "80"
matrix.dispRity(disparity, subsets = "80")

## To get the 52nd bootstrap draw of the second rarefaction level (15) of the
## same subset
matrix.dispRity(disparity, subsets = 2, rarefaction = 2, bootstrap = 52)

# }

Run the code above in your browser using DataLab