fct_glue_labels | R Documentation |
Format the labels of a factor
fct_glue_labels(xs, fmt = "{levels}", first_fmt = fmt) fct_add_counts(xs, fmt = "{levels} ({counts})", first_fmt = fmt)
xs |
a factor |
fmt |
glue-style format to use. Defaults to |
first_fmt |
glue-style format to use for very first label. Defaults to
value of |
At this point, only the magic variables "{levels}"
and
"{counts}"
are available ". In principle, others could be defined.
fct_add_counts()
is a special case of fct_glue_labels()
.
a factor with the labels updated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.