writePtdfOfTypicalDays: Transform a PTDF file

Description Usage Arguments Examples

View source: R/createPtdfForCompute.R

Description

Transform a PTDF file for computeFB function from package antaresFlowbased. The returned PTDF file contains only the typical days.

Usage

1
writePtdfOfTypicalDays(cluster, PTDF, pathOutput = getwd(), sep = ";")

Arguments

cluster

data.table output of clusteringTypicalDays

PTDF

character, path of a PTDF file. The PTDF file must contains at least these seven columns : Date, Period, BE, DE, FR, NL and RAM - in this order. It must be a .csv file with ";" as column separator and "." as decimal separator. The names of the seven columns (Date, Period, ...) must be included in the header (first line) of the .csv file.

pathOutput

character path of the folder where the file will be writen, default getwd()

sep

character sep use for write csv output.

Examples

1
2
3
4
5
6
7
8
9
#load clustering results (or build them with clusteringTypicalDays function())
clusterTD <- readRDS(system.file("dataset/cluster_example.RDS",package = "flowBasedClustering"))

PTDF = system.file("dataset/ptdf_example.csv",
      package = "flowBasedClustering")
      
writePtdfOfTypicalDays(clusterTD, PTDF)
#Write on D:/ :
writePtdfOfTypicalDays(clusterTD, PTDF, pathOutput = "D:/")

rte-antares-rpackage/flowBasedClustering documentation built on Nov. 21, 2020, 11:21 a.m.