mutate.treedata: Function for mutating an object of class 'treedata'

Description Usage Arguments Value See Also Examples

View source: R/treeplyr_functions.R

Description

This function can be used to add new variables to a treedata object; see mutate.

Usage

1
2
3
4
5
## S3 method for class 'treedata'
mutate(.data, ...)

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

Arguments

.data

An object of class treedata

...

Arguments to mutate the treedata object

Value

An object of class treedata with new data added.

See Also

mutate

Examples

1
2
3
data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
tdmutate <- mutate(td, lnSVL = log(SVL), badassery = awesomeness + hostility)

treeplyr documentation built on Sept. 17, 2020, 5:07 p.m.