Description Usage Arguments Value
Replace all values in a data.frame using a lookup table. Maximum of one list
column can be include in cols_to_lookup
.
1 | lookup_and_replace(data, lookup_table, cols, id_col = NULL)
|
data |
a data.table/data.frame to be replaced. |
lookup_table |
a data.table/data.frame contains two columns which must be
named as |
cols |
column names to be lookup and replace |
id_col |
a column with unique value to be used in unnesting |
data.table with new values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.