xtcountry: Try ISO-3N country code conversion on 'xtdata' data frames

Description Usage Arguments Value Author(s) See Also Examples

Description

This function tests conversions to ISO3-N country codes on the country codes, acronyms and names identified in a data frame that carries the xtdata attribute with the country type. Used by xtmerge.

Usage

1
  xtcountry(dataset)

Arguments

dataset

a data frame with the xtdata attribute. The type parameter must be set to "country".

Value

a vector of how many observations were successfully matched on their country code, short country name and long country name, based on the variable names specified as xtdata properties.

Author(s)

Francois Briatte f.briatte@ed.ac.uk

See Also

xtdata, xtmerge

Examples

1
2
3
4
5
if(require(countrycode)) {
  # Test the country identifiers in the QOG dataset.
  data(qog.demo)
  xtcountry(qog.ts.demo)
}

briatte/qogdata documentation built on May 13, 2019, 7:43 a.m.