Learn R Programming

yamlet (version 1.2.1)

print.decorated_xtable: Print Decorated Xtable

Description

Prints a decorated xtable. Supplies a footnote. Experimental.

Usage

# S3 method for decorated_xtable
print(x, ...)

Value

character

Arguments

x

decorated

...

passed to other methods

Examples

Run this code
library(magrittr)
library(xtable)
set.seed(0)
x <- data.frame(
 auc = rnorm(4, mean = 2400, sd = 200),
 bmi = rnorm(4, 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
x %>% resolve %>% xtable


Run the code above in your browser using DataLab