knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/"
)

OEC R package sticker

mitlicense Build Status Build status cran checks CRAN downloads CRAN downloads Coverage status

The Observatory of Economic Complexity is the world's leading visualization engine for international trade data. oec provides an easy way to obtain data from the OEC by accessing its API.

This is what the package does:

Data diagram

Using the oec R package is all about efficiency, without this package you could obtain the same data from the API at the expense of using additional time and effort for the same results. As an API wrapper and utility program this package makes data obtaining faster and easier for you.

Installation

# Install release version from CRAN
install.packages("oec")

# Install development version from GitHub
devtools::install_github("pachamaltese/oec")

Usage

This package features a full pkgdown site here. Please read it.

Here's a basic example to obtain bilateral trade between Chile and Argentina in the year 2000 under different trade classifications:

sitc_data <- get_data("chl", "arg", 2000, "sitc")
hs92_data <- get_data("chl", "arg", 2000, "hs92")

Code of conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

The MIT License

Copyright (c) 2016, Mauricio "Pachá" Vargas

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



pachamaltese/oec documentation built on May 24, 2019, 5:57 p.m.