str_remove_from_var_labels | R Documentation |
Update variable labels - remove a string from all variable labels
str_remove_from_var_labels(df, pattern = "\\s\\(f[:digit:]+.*\\)$")
df |
A data frame |
pattern |
Pattern to look for. The default interpretation is a regular expression, as described
in stringi::stringi-search-regex. Control options with
Match a fixed string (i.e. by comparing only bytes), using
Match character, word, line and sentence boundaries with
|
A data frame
Other Labelled data utility functions:
capitalise_first_letter_var_labels()
,
str_replace_all_var_labels()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.