Skip to content

Commit

Permalink
render readme update with links to comtrade
Browse files Browse the repository at this point in the history
  • Loading branch information
paul committed Apr 7, 2023
1 parent 94e482f commit 85d5076
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ ggplot2::ggplot(exports) +

## Next steps

- [ ] Implement tests for unchecked arguments, such as period, motCode and the frequency.
- [ ] Implement the different modes of transportation
- [ ] Properly document all functions, including some more links to the UN Comtrade API FAQ.
- [ ] Implement tests for unchecked arguments, such as period, motCode and the frequency.

- [ ] Implement the different modes of transportation

- [ ] Properly document all functions, including some more links to the UN Comtrade API FAQ.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ Check](https://github.com/datapumpernickel/untrader/actions/workflows/R-CMD-chec
<!-- badges: end -->

The goal of untrader is to provide a simple wrapper function for the new
Comtrade API of the UN.
[Comtrade API of the UN](https://comtradeplus.un.org/).

The package is currently under development, please be careful when
interpreting results from the API.

## Installation

Expand All @@ -27,6 +30,9 @@ This is a basic example which shows you how to solve a common problem:
``` r
library(untrader)

## you need to set your API key first
# set_primary_comtrade_key()

exports <- get_comtrade_data(freq = 'A',
clCode = 'HS',
cmdCode = '2204,2203',
Expand All @@ -52,3 +58,13 @@ ggplot2::ggplot(exports) +
```

<img src="man/figures/README-example-1.png" width="100%" />

## Next steps

- [ ] Implement tests for unchecked arguments, such as period, motCode
and the frequency.

- [ ] Implement the different modes of transportation

- [ ] Properly document all functions, including some more links to the
UN Comtrade API FAQ.

0 comments on commit 85d5076

Please sign in to comment.