Learn R Programming

whep (version 0.2.0)

get_faostat_data: Scrapes activity_data from FAOSTAT and slightly post-processes it

Description

Important: Dynamically allows for the introduction of subsets as "...".

Note: overhead by individually scraping FAOSTAT code QCL for crop data; it's fine.

Usage

get_faostat_data(activity_data, ...)

Value

data.frame of FAOSTAT for activity_data; default is for all years and countries.

Arguments

activity_data

activity data required from FAOSTAT; needs to be one of c('livestock','crop_area','crop_yield','crop_production').

...

can be whichever column name from get_faostat_bulk, particularly year, area or ISO3_CODE.

Examples

Run this code
# \donttest{
get_faostat_data("livestock", year = 2010, area = "Portugal")
# }

Run the code above in your browser using DataLab