Description Usage Arguments Value Examples
This mutate_lab_foreign
wrapper function uses the mutate
function from the dplyr
to create a new column containing the foreign
labels from a selected column.
1 | mutate_lab_foreign(df, col_name = NULL, regex = NULL)
|
df |
a |
regex |
a |
column_name |
the name of the specified column (uses standard evalulation typical of |
Returns a data frame
with a newly appended column
contain the respective foreign labels from the haven
package for each row
based on the specified column.
1 | mutate_lab_foreign(airquality, Solar.R) #throws error because no columns contain foreign labels
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.