Learn R Programming

treeplyr (version 0.1.7)

filter_.treedata: 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 treedata
filter_(.data, ..., .dots)

# S3 method for grouped_treedata filter_(.data, ..., .dots)

Arguments

.data

An object of class treedata

...

Additional arguments to filter by

.dots

Used to work around non-standard evaluation. See vignette("nse") for details.

Value

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

See Also

filter

Examples

Run this code
# NOT RUN {
data(anolis)
td <- make.treedata(anolis$phy, anolis$dat, name_column=1)
tdfilter <- filter(td, island=="Cuba", SVL > 3.5)
# }

Run the code above in your browser using DataLab