filter.treedata: Function for filtering rows from an object of class...

View source: R/treeplyr_functions.R

filter.treedataR Documentation

Function for filtering rows from an object of class treedata

Description

This function can be used to select a subset of species (rows) from a treedata object; see filter.

Usage

## S3 method for class 'treedata'
filter(.data, ...)

## S3 method for class 'grouped_treedata'
filter(.data, ...)

Arguments

.data

An object of class treedata

...

Additional arguments to filter by

Value

An object of class treedata with the dataset filtered by the specified criteria.

See Also

filter

Examples

data(anolis)
td <- make.treedata(anolis$phy, anolis$dat, name_column=1)
tdfilter <- filter(td, island=="Cuba", SVL > 3.5)

uyedaj/treeplyr documentation built on March 9, 2023, 6:37 p.m.