Package: FAOSTAT 2.4.1

FAOSTAT: Download Data from the FAOSTAT Database

Download Data from the FAOSTAT Database of the Food and Agricultural Organization (FAO) of the United Nations. A list of functions to download statistics from FAOSTAT (database of the FAO <https://www.fao.org/faostat/>) and WDI (database of the World Bank <https://data.worldbank.org/>), and to perform some harmonization operations.

Authors:Michael C. J., Markus Gesmann, Filippo Gheri, Paul Rougieux <[email protected]>, Sebastian Campbell

FAOSTAT_2.4.1.tar.gz
FAOSTAT_2.4.1.zip(r-4.5)FAOSTAT_2.4.1.zip(r-4.4)FAOSTAT_2.4.1.zip(r-4.3)
FAOSTAT_2.4.1.tgz(r-4.4-any)FAOSTAT_2.4.1.tgz(r-4.3-any)
FAOSTAT_2.4.1.tar.gz(r-4.5-noble)FAOSTAT_2.4.1.tar.gz(r-4.4-noble)
FAOSTAT_2.4.1.tgz(r-4.4-emscripten)FAOSTAT_2.4.1.tgz(r-4.3-emscripten)
FAOSTAT.pdf |FAOSTAT.html
FAOSTAT/json (API)

# Install 'FAOSTAT' in R:
install.packages('FAOSTAT', repos = c('https://paulrougieux.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://gitlab.com/paulrougieux/faostatpackage

Datasets:

On CRAN:

34 exports 6.20 score 19 dependencies 190 mentions 129 scripts 526 downloads

Last updated 28 days agofrom:ba5c0b15c9. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 21 2024
R-4.5-winWARNINGAug 21 2024
R-4.5-linuxWARNINGAug 21 2024
R-4.4-winWARNINGAug 21 2024
R-4.4-macWARNINGAug 21 2024
R-4.3-winWARNINGAug 21 2024
R-4.3-macWARNINGAug 21 2024

Exports:Aggregationchange_casechConstructcheck_country_overlapchgrCHMTconstructSYBdownload_faostat_bulkebindFAOsearchfillCountryCodegeogrget_faostat_bulkgetFAOgetWDIgetWDImetaDatagetWDItoSYBgrConstructindConstructlsgrmergeSYBoverlapprintLabread_bulk_metadataread_dataset_dimensionread_dimension_metadataread_faoread_faostat_bulkscaleUnitsearch_datasetshConstructtranslate_countrycodestranslateCountryCodetranslateUnit

Dependencies:askpassclassclassIntcurldata.tablee1071httrjsonliteKernSmoothlabelingMASSmimeopensslplyrproxyR6RcppRJSONIOsys

Readme and manuals

Help Manual

Help pageTopics
A complementary package to the FAOSTAT database and the Statistical Yearbook of the Food and Agricultural Organization of the United Nations.FAOSTAT-package FAOSTAT
Compute AggregatesAggregation
Change case of column nameschange_case
Construct year to year changechConstruct
This function perform some check on the datacheck_country_overlap
Absolute change between the yearchgr
This function avoids double counting of China.CHMT
Construct/Creat new variable.constructSYB
Download bulk data from the faostat website https://www.fao.org/faostat/en/#datadownload_faostat_bulk get_faostat_bulk read_bulk_metadata read_faostat_bulk
A function to bind the different entity level.ebind
Country profileFAOcountryProfile
The search tree for FAOSTAT3FAOmetaTable
Regional profileFAOregionProfile
A function to get country code when not available in data.fillCountryCode
Geometric growth rategeogr
Access to World Bank WDI APIgetWDI
World Bank Indicator MetadatagetWDImetaData
Access to World Bank WDI APIgetWDItoSYB
Construct Growth rategrConstruct
Construct indicesindConstruct
Least squares growth ratelsgr
Function for merging data from different source.mergeSYB
This function checks whether there are overlapping between the transitional countries.overlap
Print labelsprintLab
Examine dimensions of a datasetread_dataset_dimension read_dimension_metadata
Access FAOSTAT APIgetFAO read_fao
A function to standardize the unitscaleUnit
Search FAOSTAT dataset_codes, datasets, elements, indicators, and itemsFAOsearch search_dataset
Construct share variableshConstruct
A function to translate between different country coding systemstranslateCountryCode translate_countrycodes
Function to translate multiplierstranslateUnit