Description Usage Arguments Details Value See Also Examples
Function to clean the column to be used in joining. Will remove certain parts of elements in a column
1 2 3 4 5 6 7 8 9 10 |
df |
A table the column is in |
column |
The column to be cleaned |
replacement |
What the cleaned portion of elements will be changed to, Default: ” |
selected |
Characters to removed, Default: NULL |
prefixes |
If true, prefixes will be removed, Default: FALSE |
suffixes |
If true, suffixes will be removed, Default: FALSE |
switch_order |
Should be set to True if one of the columns is Last Name First and the other is not. Will change the order of names. Ignore if you not joining by names, Default: FALSE |
ignore.case |
If true, will ignore capitalization, Default: FALSE |
This should be run prior to fuzzy_match as it will ensure a higher degree of accuracy.
Will return a table which has specified characters removed from the column
1 2 3 4 5 | ## Not run:
congress <- clean(congress, name, selected = ",", prefixes = T, suffixes = T)
politwoops <- clean(politwoops, full_name, selected = ",", prefixes = T, suffixes = T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.