Function saving dataset to csv file with headers

output_csv_data(
  gcam_dataset,
  out_filename,
  col_type_nonyear,
  title,
  unit,
  description = NA,
  code,
  out_dir = out_dir,
  GZIP = F
)

Arguments

gcam_dataset

dataframe name to be saved

out_filename

file name of the output csv

col_type_nonyear

column type that is non-year; numeric for years will be pasted

title

title in header

unit

unit in header

description

description in header

code

fao dataset domain code

out_dir

output directory

GZIP

IF TRUE