check_country_names: Check and convert country names to ISO3

Description Usage Arguments Value Note Author(s)

View source: R/check_country_names.R

Description

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.

Usage

1
check_country_names(countries, country_names_data)

Arguments

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.

Value

If check failed returns "Failed". If check sucessfull returns a list of data frames with ISO3 country codes and participation numbers.

Note

v.0.1

Author(s)

Kimberlee Baldry


KimBaldry/mapSOOSWG documentation built on March 13, 2021, 6:57 p.m.