process_data()
reads the downloaded (and unzipped) .TXT files into tidy
data frames, applying the schema from the "D_" files to the corresponding raw
comma-separated data files, as well as storing the metadata from the "D_"
files
Details
process_data()
assumes that metadata and data files share a common root
name (characters until the first underscore occurrence).
Examples
if (FALSE) { # \dontrun{
path <- tempfile("fcadata")
download_data(
year = 2022,
month = "December",
dest = path
)
processed_data <- process_data(path)
# Access "RCB" data
processed_data$data$RCB
# Access "RCB" metadata
processed_data$metadata$RCB
} # }