render.varlabel | R Documentation |
Called from table1.formula
by default to render variable
labels for displaying in the table. This is the default function, but it can
be overriden by a user-supplied function.
render.varlabel(x, ..., transpose = F)
x |
A vector, usually with the |
... |
Additional arguments. |
transpose |
Logical indicating whether on not the table is transposed. |
A character
, which may contain HTML markup.
x <- exp(rnorm(100, 1, 1))
label(x) <- "Weight"
units(x) <- "kg"
render.varlabel(x)
y <- factor(sample(0:1, 99, replace=TRUE), labels=c("Female", "Male"))
y[1:10] <- NA
label(y) <- "Sex"
render.varlabel(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.