xtable.decorated | R Documentation |
Creates an export table for decorated data.frame by adding a footnote attribute.
## S3 method for class 'decorated'
xtable(x, ..., label = NULL, style = "latex")
x |
decorated |
... |
passed to |
label |
passed to |
style |
passed to |
class 'decorated_xtable','xtable', 'data.frame'
library(magrittr)
library(xtable)
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]]')
y <- xtable(x)
attr(y, 'footnote')
y <- xtable(x, auc:bmi)
attr(y, 'footnote')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.