mergeAllAntaresData: Merge all antaresDataSets

View source: R/mergeAllAntaresData.R

mergeAllAntaresDataR Documentation

Merge all antaresDataSets

Description

Merge all antaresDataSets

Usage

mergeAllAntaresData(dta)

Arguments

dta

antaresData

Value

A data.table, data.frame class object containing the study's output data (wide format)

Examples


library(antaresRead)
# with study test for example (study is in package antaresRead)
sourcedir <- system.file("testdata", package = "antaresRead")

# untar study in temp dir
path_latest <- file.path(tempdir(), "latest")
untar(file.path(sourcedir, "antares-test-study.tar.gz"), exdir = path_latest)

study_path <- file.path(path_latest, "test_case")

# set path to your Antares simulation
opts <- setSimulationPath(study_path)

mydata <- readAntares( areas = "all",
                       mcYears = "all", showProgress = FALSE)

# long to wide format
mydata <- mergeAllAntaresData(mydata)



rte-antares-rpackage/antaresProcessing documentation built on Dec. 8, 2024, 7:31 a.m.