Learn R Programming

treeplyr (version 0.1.10)

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, ...)

# S3 method for 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

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