table1 by default to render categorical (i.e.
logical) values for displaying in the table.
render.categorical.default(x, ..., na.is.category = TRUE)
A vector of type
Further arguments, passed to
Include missing values in the denominator for calculating percentages (the default) or omit them.
character vector. Each element is to be displayed in a
separate cell in the table. The
names of the vector are the
labels to use in the table. However, the first names should be empty as it
will be replaced by the name of the variable. Empty strings are allowed and
result in empty table cells.
y <- factor(sample(0:1, 99, replace=TRUE), labels=c("Female", "Male")) y[1:10] <- NA render.categorical.default(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.