Learn R Programming

FAOSTAT (version 1.1)

getFAO: Access to FAO FAOSTAT API

Description

A function to access FAOSTAT data through the FAOSTAT API

Usage

getFAO(name = "arableLand", domainCode = "RL",
    elementCode = 5110, itemCode = 6621, query,
    printURL = FALSE, productionDB = FALSE)

Arguments

name
The name to be given to the variable.
domainCode
The domain of the data
elementCode
The code of the element
itemCode
The code of the specific item
query
The object created if using the FAOsearch function
printURL
Whether the url link for the data should be printed
productionDB
Access to the production database, defaulted to public

Value

  • Outputs a data frame containing the specified data

Details

Need to account for multiple itemCode, currently only support one single variable. Add date range in to argument

See Also

getWDI, getWDItoSYB, getFAOtoSYB, FAOsearch

Examples

Run this code
getFAO()

Run the code above in your browser using DataLab