add_lookups | R Documentation |
Takes a vector of lookup files stored as CSVs in S3 and matches them to a data frame by a corresponding vector of variables. The file and variable names must be in the same position in their respective vectors and both vectors must be the same length.
add_lookups(data, path, vars)
data |
Data frame the lookups are to be added to. |
path |
A character vector of paths to lookup files in S3. |
vars |
A character vector of variables by which to join the lookups to the data. |
## Not run:
add_lookups(mydata,"alpha-test-data/lookup-file.csv","regionname")
# joins lookup-file.csv to mydata by variable "regionname".
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.