olap_tree_and_meta | R Documentation |
Overlap a tree's leaves with the observations in metadata, returning an intersected tree and metadata data.table.
olap_tree_and_meta(
tree_file,
meta_file,
covariates,
offset,
outcome,
omit_na = FALSE,
ladderize = TRUE,
trim_pattern = NULL,
verbose = TRUE
)
tree_file |
either a path to a tree file readable by |
meta_file |
either a data frame of metadata or a path to file containing the metadata |
covariates |
covariates to account for (as a vector of strings) |
offset |
a variable to include as an offset |
outcome |
the name of the outcome variable |
omit_na |
logical indicating whether to omit incomplete cases of the metadata |
ladderize |
logical indicating whether to run |
trim_pattern |
optional pattern to trim from tip labels of the tree |
A list with two elements: the tree and metadata, both cut down to samples that are present in the other.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.