Learn R Programming

treeplyr (version 0.1.7)

slice_.treedata: Choose rows by their ordinal position in the tbl for an object of class treedata

Description

This function can be used to drop tips from tree and data; see slice.

Usage

# S3 method for treedata
slice_(.data, ..., .dots)

Arguments

.data

An object of class treedata

...

Integer row values

.dots

Pair/values of expressions coercible to lazy objects.

Value

An object of class treedata.

See Also

slice

Examples

Run this code
# NOT RUN {
data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
tdslice <- slice(td, 1:5)
tdslice
# }

Run the code above in your browser using DataLab