table_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.
table_one(
x,
VISITNO = TRUE,
SEX = TRUE,
RUN_CENTER = TRUE,
HMP_BODY_SITE = TRUE,
HMP_BODY_SUBSITE = TRUE
)
x |
A |
VISITNO |
logical; if |
SEX |
logical; if |
RUN_CENTER |
logical; if |
HMP_BODY_SITE |
logical; if |
HMP_BODY_SUBSITE |
logical; if |
A data.frame
object or a named list
of
data.frame
objects
kable_one
V13() %>%
table_one()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.