ltabs | R Documentation |
This function is a wrapper around xtabs
, adding automatically
value labels for labelled vectors if labelled package eis installed.
ltabs( formula, data, levels = c("prefixed", "labels", "values"), variable_label = TRUE, ... )
formula |
a formula object (see |
data |
a data frame |
levels |
the desired levels in case of labelled vector: "labels" for value labels, "values" for values or "prefixed" for labels prefixed with values |
variable_label |
display variable label if available? |
... |
additional arguments passed to |
xtabs
.
data(fecondite) ltabs(~radio, femmes) ltabs(~radio+tv, femmes) ltabs(~radio+tv, femmes, "l") ltabs(~radio+tv, femmes, "v") ltabs(~radio+tv+journal, femmes) ltabs(~radio+tv, femmes, variable_label = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.