Aggregate and Export to FST Format
Usage
aggregate_export_fst(
year_month_start = NULL,
year_month_end = format(Sys.Date(), "%Y-%m"),
compression = 100,
FUN_get_monthly_data = NULL,
FUN_import = NULL,
FUN_calculate_ops = NULL,
prefix = NULL,
calculate_ops_on_level = c("raw", "aggregated")[1L],
siteData_raw_list = NULL,
export_dir_path = NULL
)
Arguments
- year_month_start
start year month in yyyy-mm format, e.g. "2017-06"
- year_month_end
end year month (default: current month)
- compression
(default: 100)
- FUN_get_monthly_data
function to be called to determine "raw_data_file_paths"
- FUN_import
function to be called to read data into "siteData_raw_list"
- FUN_calculate_ops
function to be called to calculate operational parameters. If
NULL
(the default), no operational parameters are calculated- prefix
site-specific prefix to be used as a sub folder name in the export directory
- calculate_ops_on_level
one of "raw", "aggregated". Determines whether to calculate operational parameters based on the raw or on the aggregated values. Not used if
FUN_calculate_ops
isNULL
- siteData_raw_list
existing raw data. If given (not
NULL
), no monthly periods are calculated and no data are imported. The given data are treated as one and only (monthly?) period.- export_dir_path
path to the export directory. Only required if raw data are given in
siteData_raw
.