powered by
Extracts sets of a MAgPIE-object if available
getSets(x, fulldim = TRUE, sep = ".")getSets(x, fulldim = TRUE, sep = ".") <- value
getSets(x, fulldim = TRUE, sep = ".") <- value
Sets of the MAgPIE-object. If no information about contained sets is available NULL
MAgPIE object
bool: Consider dimension 3 as a possible aggregate of more dimensions (TRUE) or stick to it as one dimension (FALSE)
A character separating joined dimension names
A vector with set names you want to replace the current set names of the object with.
getSets(x, fulldim = TRUE, sep = ".") <- value: replace set names
Markus Bonsch, Jan Philipp Dietrich
getRegions, getNames,getYears, getCPR, read.magpie, write.magpie, "magpie"
getRegions
getNames
getYears
getCPR
read.magpie
write.magpie
"magpie"
a <- new.magpie("GLO.1", 2000, c("a.o1", "b.o1", "a.o2")) getSets(a) <- c("reg", "cell", "t", "bla", "blub") getSets(a) getSets(a)["d3.1"] <- "BLA" getSets(a, fulldim = FALSE) getSets(a)
Run the code above in your browser using DataLab