Description Usage Arguments Value
View source: R/replace_idcol.R
This function replaces an ID column in a dataframe with another ID, given a lookup table
1 | replace_idcol(dataset, col_toreplace, lookup)
|
dataset |
The input data.frame that contains the id to be replaced |
col_toreplace |
A string that is the name of the column to be replaced |
lookup |
The lookup 2-column data.frame that contains the original column as the first column and the corresponding IDs as the second. Ideally generated by |
A data.frame which is like the original except that the ID column is replaced with its corresponding entry in the lookup table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.