{"id":22322935,"url":"https://github.com/rte-antares-rpackage/antaresprocessing","last_synced_at":"2025-07-29T15:31:29.861Z","repository":{"id":54977001,"uuid":"73832627","full_name":"rte-antares-rpackage/antaresProcessing","owner":"rte-antares-rpackage","description":"Processes the input and output data of ANTARES","archived":false,"fork":false,"pushed_at":"2024-12-04T14:41:37.000Z","size":1555,"stargazers_count":8,"open_issues_count":6,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-23T02:46:31.026Z","etag":null,"topics":["adequacy","antares","bilan","datatable","energy","linear-algebra","margins","monte-carlo-simulation","optimization","previsionnel","r","rte","simulation","surplus","tyndp"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rte-antares-rpackage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-15T16:25:58.000Z","updated_at":"2024-12-04T10:21:02.000Z","dependencies_parsed_at":"2022-08-14T08:00:36.312Z","dependency_job_id":null,"html_url":"https://github.com/rte-antares-rpackage/antaresProcessing","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/rte-antares-rpackage/antaresProcessing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresProcessing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresProcessing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresProcessing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresProcessing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rte-antares-rpackage","download_url":"https://codeload.github.com/rte-antares-rpackage/antaresProcessing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rte-antares-rpackage%2FantaresProcessing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267709571,"owners_count":24131915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adequacy","antares","bilan","datatable","energy","linear-algebra","margins","monte-carlo-simulation","optimization","previsionnel","r","rte","simulation","surplus","tyndp"],"created_at":"2024-12-04T01:08:51.117Z","updated_at":"2025-07-29T15:31:29.824Z","avatar_url":"https://github.com/rte-antares-rpackage.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The 'antaresProcessing' R package\n\n\n\u003e The `antaresProcessing` package provides functions that uses data created with package `antaresRead` to compute standard aggregate like customer surplus or sector surplus. This document demonstrates how to use the main functions of the package.\n\n\u003c!-- badges: start --\u003e\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/antaresProcessing)](https://cran.r-project.org/package=antaresProcessing)\n[![R-CMD-check](https://github.com/rte-antares-rpackage/antaresProcessing/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rte-antares-rpackage/antaresProcessing/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\n\n## Installation\n\nThis package has been published on CRAN, so you can install it easily:\n```r\ninstall.packages(\"antaresViz\")\n```\n\nTo install the last development version:\n```r\ninstall_github(\"rte-antares-rpackage/antaresProcessing\", ref =\"develop\")\n```\n\nTo display the help of the package and see all the functions it provides, type:\n```r \nhelp(package=\"antaresProcessing\")\n```\n\n## Basic usage\n\nThe usage of the package is quite straightforward. First one has to read data from an antares study with `readAntares` and then pass it to a function of `antaresProcessing`. Each function requires different type of data (areas, links...) and different level of detail. Generally, functions that perform non-linear calculations require hourly data for each Monte-Carlo scenario but they have arguments to then aggregate the results at the desired level of detail. On the contrary, functions that do linear calculations accept every level of detail and their output has the same level of detail as their input.\n\nThe following table sums up the required data and the output of the different functions. For more details, one can look at the help file of each function. Especially, each help page contains an example that minimizes the amount of data read. \n\nFunction        | Description | requires |time step | works on synthesis\n----------------|-------------|:--------:|:--------:|:-----------------:\nsurplus         | Consumer and producer surplus | areas, links | hourly | no\nsurplusClusters | Surplus of clusters | clusters, areas | hourly | no\nsurplusSectors  | Surplus of sectors of production | areas, clusters | hourly | no\naddNetLoad      | Net load | areas and/or districts | all | yes\nnetLoadRamp     | Ramp of net load | areas and/or districts | hourly | no\nmargins         | Downward and upward margins of an area    | areas, clusters | all | yes\nmodulation      | modulation of cluster units or sectors | areas or districts or clusters | all | yes\n\nThere is also a `compare` function that can be used to compare two tables with same shape. It is useful to compare the results of two simulations. \n\n```r\nstudyPath \u003c- \"path/to/study\"\n\nsetSimulationPath(studyPath, 1)\ndata1 \u003c- readAntares(areas = \"all\", links = \"all\", synthesis = FALSE)\nsurplus1 \u003c- surplus(data1,  timeStep = \"annual\", synthesis = TRUE) \n\nsetSimulationPath(studyPath, 2)\ndata2 \u003c- readAntares(areas = \"all\", links = \"all\", synthesis = FALSE)\nsurplus2 \u003c- surplus(data2,  timeStep = \"annual\", synthesis = TRUE)\n\ncompare(surplus1, surplus2)\n\n## 'antaresDataTable' object with dimension 72 x 8\n## Type: surplusComparison\n## TimeStep: annual\n## Synthesis: TRUE\n##                area timeId time consumerSurplus producerSurplus storageSurplus ...\n## 1:            01_pt Annual 2017       -57046.01       10371.915              0\n## 2:            02_es Annual 2017      -956371.65      517675.155              0\n## 3:            03_es Annual 2017      2435946.66    -1978004.005              0\n## 4:            04_fr Annual 2017       -70700.07      110701.300              0\n## ...\n\n```\n\nBy default, `compare` computes the difference between two tables, but it can also compute a ratio or a variation rate.\n\n\n## Contributing:\n\nContributions to the library are welcome and can be submitted in the form of pull requests to this repository.\n\n## ANTARES :\n Antares is a powerful software developed by RTE to simulate and study electric power systems (more information about Antares here : \u003chttps://antares-simulator.org/\u003e).\n\nANTARES is now an open-source project (since 2018), you can download the sources [here](https://github.com/AntaresSimulatorTeam/Antares_Simulator) if you want to use this package.\n\n## License Information:\n\nCopyright 2015-2020 RTE (France)\n\n* RTE: http://www.rte-france.com\n\nThis Source Code is subject to the terms of the GNU General Public License, version 2 or any higher version. If a copy of the GPL-v2 was not distributed with this file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frte-antares-rpackage%2Fantaresprocessing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frte-antares-rpackage%2Fantaresprocessing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frte-antares-rpackage%2Fantaresprocessing/lists"}