footnote.decorated | R Documentation |
Footnotes a decorated data.frame. Generates a text string that defines column names using label and unit attributes.
## S3 method for class 'decorated'
footnote(x, ..., equal = ":", collapse = "; ")
x |
decorated |
... |
passed to |
equal |
character: a symbol suggesting equality between a name and its note |
collapse |
used to |
character
Other footnote:
footnote()
library(magrittr)
set.seed(0)
x <- data.frame(
auc = rnorm(100, mean = 2400, sd = 200),
bmi = rnorm(100, mean = 20, sd = 5),
gen = 0:1
)
x %<>% decorate('auc: [AUC_0-24, ng*h/mL]')
x %<>% decorate('bmi: [Body Mass Index, kg/m^2]')
x %<>% decorate('gen: [Gender, [Male: 1, Female: 0]]')
x %<>% resolve
footnote(x)
footnote(x, auc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.