Learn R Programming

treeplyr (version 0.1.7)

mutate_.treedata: Function for mutating an object of class treedata

Description

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

Usage

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

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

Arguments

.data

An object of class treedata

...

Arguments to mutate the treedata object

.dots

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

Value

An object of class treedata with new data added.

See Also

mutate

Examples

Run this code
# NOT RUN {
data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
tdmutate <- mutate(td, lnSVL = log(SVL), badassery = awesomeness + hostility)
# }

Run the code above in your browser using DataLab