render_cat | R Documentation |
Called from cttab
by default to render categorical (i.e.
factor
, character
or logical
) values for displaying
in the table.
render_cat(x, ...)
x |
A vector of type |
... |
Further arguments, passed to |
This function was used by link{cttab}
to render categorical variables.
It essentially uses the values returned by cat_stat
and
put values to a vector. You can modified this to show any values you
want, checkout the example below.
A 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.
signif_pad
round_pad
num_stat
y <- factor(sample(0:1, 99, replace = TRUE), labels = c("Female", "Male"))
y[1:10] <- NA
render_cat(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.