View source: R/dada_phyloseq.R
tbl_sum_samdata | R Documentation |
A wrapper for the gtsummary::tbl_summary()
function in the case of physeq
object.
tbl_sum_samdata(physeq, remove_col_unique_value = TRUE, ...)
physeq |
(required): a |
remove_col_unique_value |
(logical, default TRUE) Do we remove informative columns (categorical column with one value per samples), e.g. samples names ? |
... |
Other arguments pass on to |
This function is mainly a wrapper of the work of others.
Please make a reference to gtsummary::tbl_summary()
if you
use this function.
A new phyloseq-class
object with a larger slot tax_table
Adrien Taudière
if (requireNamespace("gtsummary")) {
tbl_sum_samdata(data_fungi) %>%
gtsummary::as_kable()
summary_samdata <- tbl_sum_samdata(data_fungi,
include = c("Time", "Height"),
type = list(Time ~ "continuous2", Height ~ "categorical"),
statistic = list(Time ~ c("{median} ({p25}, {p75})", "{min}, {max}"))
)
}
data(enterotype)
if (requireNamespace("gtsummary")) {
summary_samdata <- tbl_sum_samdata(enterotype)
summary_samdata <- tbl_sum_samdata(enterotype, include = !contains("SampleId"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.