apply_labels | R Documentation |
This function is a copycat of from expss package v0.10.7 (slightly modified) to avoid having to depend on expss. See expss::apply_labels()
for more documentation. Note that this version is not compatible with data.table
.
apply_labels(data, ..., fn, warn_missing = FALSE)
data |
data.frame/list |
... |
named arguments, as |
fn |
alternatively, a function to be applied to all existing labels. |
warn_missing |
if TRUE, throw a warning if some names are missing |
An object of the same type as data
, with labels
Dan Chaltiel
iris %>%
apply_labels(Sepal.Length="Length of Sepal",
Sepal.Width="Width of Sepal") %>%
crosstable()
iris2 %>%
apply_labels(fn=tolower) %>%
crosstable()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.