zerotradeflow: An Implementation for the Gravitational Models of Trade

A system for creating the bilateral trade flow between a country pair equal to zero. You provide the data, tell get_zerotradeflow() which variables are of interest and it expands the base by creating the bilateral zero trade flow. The bases on the flow of trade between countries only report positive trade (greater than zero), however, for some analyzes of gravitacional models, data on zero flow is also necessary. Some examples for Gravity Model: Figueiredo and Loures (2016) <doi:10.5935/0034-7140.20160015> and Yotov, Piermartini, Monteiro and Larch <>.

Version: 0.1.0
Depends: R (≥ 3.5.0)
Imports: magrittr, tidyverse, rlang, dplyr, tidyr, purrr, cli
Suggests: testthat (≥ 2.1.0)
Published: 2022-07-18
DOI: 10.32614/CRAN.package.zerotradeflow
Author: Alexandre Loures ORCID iD [aut, cre]
Maintainer: Alexandre Loures <alexandre.loures at>
License: MIT + file LICENSE
NeedsCompilation: no
Language: English
Materials: README
CRAN checks: zerotradeflow results


Reference manual: zerotradeflow.pdf


Package source: zerotradeflow_0.1.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): zerotradeflow_0.1.0.tgz, r-oldrel (arm64): zerotradeflow_0.1.0.tgz, r-release (x86_64): zerotradeflow_0.1.0.tgz, r-oldrel (x86_64): zerotradeflow_0.1.0.tgz


Please use the canonical form to link to this page.