Description Usage Arguments Value Examples
View source: R/countries_lib.R
Countries names normalization (find the correct)
1 | normalize_country_name(posnames, dif_acc = 0.2)
|
posnames |
Character vector of countries names to normalization. |
dif_acc |
Float accuracy parametr of string matching. Must be from 0.0 to 1.0 |
Character vector of normalized names. Contains common names if normalizing was successful and "None" if not or unit vector "Invalid arguments" if types of arguments aren't correct (for example, zero length names in argument posnames or incorrect type of dif_acc).
1 2 3 4 | normalize_country_name("Russia")
vect <- c("ru", "en", "usa") # posnames
normalize_country_name(vect)
normalize_country_name("United States", 0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.