Skip to contents

Converts geographical location information, as it was described in a source document, to equivalent ISO-3166 and ISO-3166-2 codes.

Usage

iso_3166_codes(tidy_data, locations_iso)

Arguments

tidy_data

data frame containing a field called location containing geographical location information extracted from a source document

locations_iso

table containing three columns: location with all unique location identifiers in the tidy_data, iso_3166 containing equivalent ISO-3166 codes (if applicable), and iso_3166_2 containing equivalent ISO-3166-2 codes (if applicable)