Translate names of carriers
in PyPSA
to commodities
in energyRt
Source: R/translate.R
carriers2comm.Rd
energyRt
is using names conversion suitable for several modeling languages
(R, GAMS, Python, Julia, GLPK/MathProg), therefore names in sets (such as commodities)
cannot include white-spaces or any special characters. This function provides
a set of rules to map (or rename) carriers
to universal format, using
capital letters (not required) and
This is an ad-hoc function for a particular model(s) and project(s).
Adjustments might be required in the case of changes in the model(s).