Learn R Programming

countrycode (version 0.6)

countryframe: Generate data frames from any of the coding schemes

Description

countryframe can generate data frames of three types: (1) undirected dyad-year observations, (2) directed dyad-year observations, (3) country-year observations.

Usage

countryframe(TYPE, CODE, YEARS)

Arguments

TYPE
Either "undirected.dyads", "directed.dyads", or "country.years"
CODE
One of the 7 coding schemes supported by the countrycode function
YEARS
A range of years for which you want to generate individual rows

Value

  • Data frame

Examples

Run this code
## Usage example
countryframe("country.years", "iso3c", c(1998:2002))

Run the code above in your browser using DataLab