powered by
Important: Dynamically allows for the introduction of subsets as "...".
"..."
Note: overhead by individually scraping FAOSTAT code QCL for crop data; it's fine.
get_faostat_data(activity_data, ...)
data.frame of FAOSTAT for activity_data; default is for all years and countries.
data.frame
activity_data
activity data required from FAOSTAT; needs to be one of c('livestock','crop_area','crop_yield','crop_production').
c('livestock','crop_area','crop_yield','crop_production')
can be whichever column name from get_faostat_bulk, particularly year, area or ISO3_CODE.
get_faostat_bulk
year
area
ISO3_CODE
# \donttest{ get_faostat_data("livestock", year = 2010, area = "Portugal") # }
Run the code above in your browser using DataLab