export_named_df: Export the downloaded table into a csv file.

export_named_dfR Documentation

Export the downloaded table into a csv file.

Description

Export the downloaded table into a csv file.

Usage

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.


eloualiche/entrydatar documentation built on Aug. 20, 2023, 1:56 p.m.