Called from cttab by default to render categorical (i.e.
factor, character or logical) values for displaying
in the table.
Arguments
- x
A vector of type
factor,characterorlogical.- ...
Further arguments, passed to
cat_stat.
Value
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.
Details
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.