Description Usage Arguments Value Examples
ver: 0.1.0
Author: Dien Giau Bui (aka Richard)
This function fuzzy-match 2 vector of strings and return the output vector. In this version, I allow only one key.
We need two objects and the method to match:
1. name_old: is the string vector of name (that we need to match)
2. key: a data.frame with at least two variables: name and key (e.g, gvkey or cusip)
3. Method: default is "dl". Other methods: "osa", "lv", "dl", "hamming", "lcs", "qgram", "cosine", "jaccard", "jw", "soundex". Detail: ?stringdist::stringdist
1 | ri_fmatch(name_old, key, method_type = "dl")
|
name_old |
a vector |
key |
a data.frame |
the matching between (name_old) and (key)
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.