ops_country: Convert two letter patent country codes to country names

Description Usage Arguments Value References Examples

Description

This function converts two letter country and patent office codes to country and office names. It converts the column and adds a 'country_name' column with the full country name.

Usage

1

Arguments

data

A data.frame containing a country column to

col

a column named "country" containing two letter country codes

Value

A data.frame

References

The base country list is imported from the countrycode package (on CRAN) in the countrycode_data.csv file https://github.com/vincentarelbundock/countrycode/raw/master/data/countrycode_data.csv. That file is reproduced and modified with entries in the iso2c field for regional patent offices from WIPO standard St.3 http://www.wipo.int/pct/guide/en/gdvol1/annexes/annexk/ax_k.pdf. Continent and region fields are assigned to patent at present.

Examples

1
## Not run: ops_country(data = pizza_numbers, col = "country")

poldham/opsrdev documentation built on May 25, 2019, 11:23 a.m.