This repository contains all the files to build the FAOSTAT package.
You can report issues on the gitlab issue page.
The FAOSTAT API on which this package was based has changed in 2017 and this package hasn't been working since then.
As of 2020, The main interest of this package lies in the updated functions to download data from the bulk download:
download_faostat_bulk
read_faostat_bulk
And in the mapping tables:
FAOcountryProfile
FAOmetaTable
FAOregionProfile
Look at the help of those functions and data sets for more information.
There is also @muuankarski 's take on the FAOSTAT bulk download here: https://github.com/muuankarski/faobulk He created functions to parse the FAOSTAT xml files, I might include them at some point here.
The package can be installed from CRAN:
install.packages("FAOSTAT")
or install the develop version via the following link, different version can be installed by specifying the ref argument.
library(devtools)
remotes::install_gitlab(repo = "paulrougieux/faostatpackage/FAOSTAT")
Vignettes and demos are available and please make use of them:
vignette(topic = "FAOSTAT")
demo(topic = "FAOSTATdemo")