kable_one | R Documentation |
Sometimes it is desirable to produce a summary of key demographic variables
for presentation. The table_one
and kable_one
methods are a quick way to do so – they not only summarize key demographic
variables from SummarizedExperiment-class
object(s) in the HMP16SData
package but remove abbreviations
and underscores in column and variable names that might otherwise be
ambigious. The table_one
method returns a tidy (i.e. one
sample observation per line) data.frame
object or a named list
of tidy data.frame
objects. The kable_one
method
can then be used to produce a publication-ready HTML
table that could,
for example, be pasted into a word processor.
kable_one(x, significant_figures = 2)
x |
A |
significant_figures |
The number of significant figures to be used for
decimals in the |
A summary HTML
table of key demographic variables
table_one
V13() %>%
table_one() %>%
kable_one()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.