tableVisual: Produce tables for the makeDataReport visualizations.
Description
Produce a table of the distribution of a categorical (character, labelled, haven_labelled or factor) variable.
Note that tableVisual is a visualFunction, compatible with the
visualize and makeDataReport functions.
Usage
tableVisual(v, vnam, doEval = TRUE)
Arguments
v
The variable (vector) to be plotted.
vnam
The name of the variable.
doEval
If TRUE, the table itself is returned. Otherwise, the function returns
a character string containing standalone R code for producing the table.