Description Usage Arguments Value References Examples
This function takes a character vector or factor, and recodes misspelled words into the corrected company names. Uses pre-programmed find and replace.
1 2 |
verbatim |
A character vector or factor to be recoded |
hold.na |
Logical, maintain NA values to keep ordering |
other |
convert unmatched to "Other" or leave as is |
year |
full year to extract from credobb3 companies list |
m A list containing recoded factors ($verbatims) and unmatched values ($unmatched)
Trim functionality courtesy of f3lix: http://stackoverflow.com/a/2261149/170352
1 2 3 4 | verbatim <- c("CI","bmo","cibc","renaisance","vpi",NA,"Aim","why")
credo.companycode(verbatim)
credo.companycode(verbatim, TRUE)
credo.companycode(verbatim, TRUE, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.