powered by
This function can be used to check if a treedata object contains numeric columns and, if desired, drop all non-numeric columns.
forceNumeric(tdObject, return.numeric = TRUE)
A treedata object
treedata
If TRUE, then a treedata object with all numeric columns will be returned; non-numeric columns will be removed.
If return.numeric, then an object of class "treedata" with only numeric columns.
# NOT RUN { data(anolis) td <- make.treedata(anolis$phy, anolis$dat) tdnumeric <- forceNumeric(td) # }
Run the code above in your browser using DataLab