R/xfaostat_helper_funcs.R
FF_rawdata_info.Rd
FF_rawdata_info: extract meta info of data (e.g., zip files) in a folder
FF_rawdata_info(
DATA_FOLDER = file.path("inst/extdata", DIR_RAW_DATA_FAOSTAT),
DATASETCODE,
DOWNLOAD_NONEXIST = FALSE,
FAOSTAT_or_Archive = "Archive"
)
The folder including raw zipped csv data from FAOSTAT.
Dataset code in FAO metadata, e.g., QCL is the production dataset.
A logical variable. If TRUE, nonexist dataset will be downloaded.
If DOWNLOAD_NONEXIST == TRUE, down data from FAOSTAT if FAOSTAT_or_Archive ="FAOSTAT" and from Zenodo if FAOSTAT_or_Archive ="Archive"
A data frame summarizing the local raw data info (e.g., size, downloaded date, etc.) if DOWNLOAD_NONEXIST == FALSE. Otherwise, nonexistent files will be downloaded and the function should be rerun.