powered by
treedata
This function can be used to add new variables to a treedata object; see mutate.
mutate
# S3 method for treedata mutate(.data, ...)# S3 method for grouped_treedata mutate(.data, ...)
# S3 method for grouped_treedata mutate(.data, ...)
An object of class treedata
Arguments to mutate the treedata object
An object of class treedata with new data added.
# 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