Save the csv files after transformation to daily form
Source:R/station_daily_input.R
save_daily_tbl.RdSave the csv files after transformation to daily form
Value
No return value (NULL), called for side effects. Writes one CSV
file for every named element of tbl_list to path; output files are
named <element-name>.csv and retain the element table structure.
Examples
daily_dir <- tempfile("wcswatin-daily-")
dir.create(daily_dir)
daily_tables <- list(
day_20200101 = data.frame(ID = 1:2, pcp = c(1.2, 0))
)
save_daily_tbl(daily_tables, daily_dir)
list.files(daily_dir)
#> [1] "day_20200101.csv"
unlink(daily_dir, recursive = TRUE)