lookup_country_code: Lookup ISO country code weatherunderground API doesn't...

Description Usage Arguments Value Examples

Description

Lookup ISO country code weatherunderground API doesn't recognize iso codes uniformly for every country.name

Usage

1

Arguments

name

Name of country

region

Geographic region

Value

data.frame of country codes

Examples

1
2
3
4
5
## Not run: 
lookup_country_code("Korea")
lookup_country_code("Guinea", region = "Africa")

## End(Not run)

Example output

Attaching package: 'rwunderground'

The following object is masked from 'package:utils':

    history

                          country.name.en iso2c       region
111 Democratic People's Republic of Korea    KP Eastern Asia
172                     Republic of Korea    KR Eastern Asia
     country.name.en iso2c         region
63 Equatorial Guinea    GQ  Middle Africa
87            Guinea    GN Western Africa
88     Guinea Bissau    GW Western Africa

rwunderground documentation built on May 2, 2019, 2:46 a.m.