create_wm_ntc: Create Links for Weekly Margins simulation

Description Usage Arguments Examples

View source: R/create_wm_ntc.R

Description

Create Links for Weekly Margins simulation

Usage

1
2
3
create_wm_ntc(data, start = NULL, startday = "samedi",
  sort_links = TRUE, force_date = FALSE, flow_based = FALSE,
  opts = antaresRead::simOptions())

Arguments

data

a data.table containing NTC datas.

start

Starting day of the simulation, data between previous startday and next startday-1, by default between samedi and vendredi.

startday

Day of week to start simulation.

sort_links

Reorder other links to match the desired week.

force_date

Force date in data to match startday.

flow_based

Logical, is this a flow based study ? If TRUE, links with Be, Nl and De aren't edited.

opts

List of simulation parameters returned by the function antaresRead::setSimulationPath

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

# set path to your simulation
opts <- setSimulationPath(path = "path/to/simulation/", simulation = "input")

# NTC data
ntc <- fread("path/to/data.csv")

# Create links in Antares
create_wm_ntc(ntc, start = "2018-01-04")


## End(Not run)

rte-antares-rpackage/antaresWeeklyMargin documentation built on July 25, 2019, 8:23 p.m.