keyfuns | R Documentation |
Convenience functions for merging and separating keys
mergekeys(tbl, idcols, synthid = "id", drop = TRUE, sepchar = intToUtf8(31))
splitkeys(tbl, idcols, synthid = "id", drop = TRUE, sepchar = intToUtf8(31))
tbl |
Input table |
idcols |
Names of the columns with the separated keys |
synthid |
Name of the column with the synthetic key |
drop |
If |
sepchar |
Character to use to separate elements in the synthetic key
(default is ASCII Unit Separator ( |
mergekeys()
: Merge two or more columns into a synthetic key
splitkeys()
: Separate synthetic key into two or more columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.