Learn R Programming

FAOSTAT (version 2.4.0)

Download Data from the FAOSTAT Database

Description

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 ) and WDI (database of the World Bank ), and to perform some harmonization operations.

Copy Link

Version

Install

install.packages('FAOSTAT')

Monthly Downloads

559

Version

2.4.0

License

GPL (>= 2)

Maintainer

Last Published

May 22nd, 2024

Functions in FAOSTAT (2.4.0)

change_case

Change case of column names
fillCountryCode

A function to get country code when not available in data.
check_country_overlap

This function perform some check on the data
geogr

Geometric growth rate
CHMT

This function avoids double counting of China.
Aggregation

Compute Aggregates
overlap

This function checks whether there are overlapping between the transitional countries.
printLab

Print labels
getWDItoSYB

Access to World Bank WDI API
get_fao

REST functions to connect to FAO
chgr

Absolute change between the year
read_dataset_dimension

Examine dimensions of a dataset
constructSYB

Construct/Creat new variable.
read_fao

Access FAOSTAT API
shConstruct

Construct share variable
translateUnit

Function to translate multipliers
mergeSYB

Function for merging data from different source.
lsgr

Least squares growth rate
search_dataset

Search FAOSTAT dataset_codes, datasets, elements, indicators, and items
scaleUnit

A function to standardize the unit
getWDI

Access to World Bank WDI API
chConstruct

Construct year to year change
getWDImetaData

World Bank Indicator Metadata
cache_data

Cache files read in by the API
grConstruct

Construct Growth rate
ebind

A function to bind the different entity level.
download_faostat_bulk

Download bulk data from the faostat website https://www.fao.org/faostat/en/#data
indConstruct

Construct indices
translate_countrycodes

A function to translate between different country coding systems
FAOSTAT-package

A complementary package to the FAOSTAT database and the Statistical Yearbook of the Food and Agricultural Organization of the United Nations.
FAOcountryProfile

Country profile
FAOmetaTable

The search tree for FAOSTAT3
FAOregionProfile

Regional profile