augment_holiday: add holiday column

Description Usage Arguments Examples

Description

add holiday column

Usage

1
augment_holiday(x, country_id = "country")

Arguments

x

dataset

country_id

column name specifying the country column

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
load_dir <- system.file(package = "antaDraft",
  "data_sample/load_sample_2017")

load_data <- anta_load(data_dir = load_dir )
load_data <- augment_validation(data = load_data)
head(load_data)

aggregated_db <- agg_data(load_data)
aggregated_db <- augment_validation(aggregated_db)
aggregated_db <- data_correct_with_rules(aggregated_db)
aggregated_db <- augment_process_summary(aggregated_db)
aggregated_db <- augment_holiday(aggregated_db)
head(aggregated_db)

rte-antares-rpackage/antaDraft documentation built on May 14, 2019, 2:59 p.m.