Description Usage Arguments Value Note Author(s)
View source: R/check_country_names.R
This function simply checks SOOS WG country data against the available lookup table. If the test is passed, it then converts SOOS country names into ISO3 codes for mapping and returns a data frame with countries and the number of participants (count).If the test is failed, a "Failed" message is returned.
1 | check_country_names(countries, country_names_data)
|
countries |
list of country character vercors to be checked from the data file |
country_names_data |
A data frame. The data frame must contain 2 columns labeled "Country" (what SOOS records the country as) and "ISO3_name". See "example_country_data" for an example. |
If check failed returns "Failed". If check sucessfull returns a list of data frames with ISO3 country codes and participation numbers.
v.0.1
Kimberlee Baldry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.