setNamesProbabilityMatrix: Rename the probabilityMatrix variables

View source: R/createFBTS.R

setNamesProbabilityMatrixR Documentation

Rename the probabilityMatrix variables

Description

This function changes the name of the variables in the probabilityMatrix, created by flowBasedClustering::getProbability and used by createFBTS. Aim: rename the variables into a format consistent with Antares inputs ("area@variable"). For example, go to createFBTS.

Usage

setNamesProbabilityMatrix(data, oldName, newName)

Arguments

data

list, probabilityMatrix whose columns to rename, calculated with flowBasedClustering::getProbability.

oldName

character vector of old variables names

newName

character vector of new variables names


rte-antares-rpackage/fbAntares documentation built on June 1, 2022, 6:20 p.m.