FF_rawdata_info: extract meta info of data (e.g., zip files) in a folder

FF_rawdata_info(
  DATA_FOLDER = DIR_RAW_DATA_FAOSTAT,
  DATASETCODE,
  DOWNLOAD_NONEXIST = FALSE,
  FAOSTAT_or_Archive = "Archive"
)

Arguments

DATA_FOLDER

The folder including raw zipped csv data from FAOSTAT.

DATASETCODE

Dataset code in FAO metadata, e.g., QCL is the production dataset.

DOWNLOAD_NONEXIST

A logical variable. If TRUE, nonexist dataset will be downloaded.

FAOSTAT_or_Archive

If DOWNLOAD_NONEXIST == TRUE, down data from FAOSTAT if FAOSTAT_or_Archive ="FAOSTAT" and from Zenodo if FAOSTAT_or_Archive ="Archive"

Value

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.