slice.treedata: Choose rows by their ordinal position in the tbl for an...

View source: R/treeplyr_functions.R

slice.treedataR Documentation

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 class 'treedata'
slice(.data, ...)

Arguments

.data

An object of class treedata

...

Integer row values

Value

An object of class treedata.

See Also

slice

Examples

data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
tdslice <- slice(td, 1:5)
tdslice

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