Description Usage Arguments Value Examples
View source: R/treeplyr_functions.R
This function can be used to check if a treedata object contains factors and, if desired, convert all columns automatically to factors.
1 | forceFactor(tdObject, return.factor = TRUE)
|
tdObject |
A |
return.factor |
If TRUE, then a treedata object with all factors will be returned;
columns will be forced into factors using |
If return.factor, then an object of class "treedata
" with all columns as
factors.
1 2 3 | data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
tdforcefactor <- forceFactor(td)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.