Export the downloaded table into a csv file.

export_named_df(path_data = "./", year, named_df)

Arguments

path_data

where does the download happen: default current directory

year

filename for .csv file. Note that you need to pass in the correct year here, since the function has no idea of what the actual year corresponding to this data is

named_df

data frame with name

Value

NIL. Exports csv file "./singlefile/$agglvl_code/$year.csv"

Note

generates the appropriate directory if it does not already exist.

our data does not have any headers; this simplifies the process of joining all the csv files with cat or similar command line tools so that we have a single file across all aggregation level codes.