R/xfaostat_helper_funcs.R
FF_download_FAOSTAT.Rd
FF_download_FAOSTAT: Bulk download raw data from FAOSTAT API by dataset code
FF_download_FAOSTAT(
DATASETCODE,
DATA_FOLDER = file.path("inst/extdata", DIR_RAW_DATA_FAOSTAT),
OverWrite = FALSE
)
Single dataset code in FAO metadata, e.g., QCL is the production dataset.
Destination folder for storing raw data
If FALSE, check if the dataset exists and stop if exists; overwrite if TRUE