Learn R Programming

FAOSTAT (version 2.2.1)

FAOsearch: Search FAOSTAT tables

Description

Get full list of datasets from the FAOSTAT database with the Code, Dataset Name and Topic.

Usage

FAOsearch(
  code = NULL,
  dataset = NULL,
  topic = NULL,
  latest = FALSE,
  full = TRUE
)

Arguments

code

character code of the dataset, listed as DatasetCode

dataset

character name of the dataset (or part of the name), listed as DatasetName in the output data frame

topic

character topic from list

latest

boolean sort list by latest updates

full

boolean, TRUE returns the full table with all columns

Examples

Run this code
# NOT RUN {
# Find information about all datasets
fao_metadata <- FAOsearch()    
# Find information about the forestry dataset
FAOsearch(code="FO")
# Find information about datasets whose titles contain the word "Flows"
FAOsearch(dataset="Flows", full = FALSE)
# }

Run the code above in your browser using DataLab