powered by
Function adds a name dimension as dimension number "dim" with the name "add" with an empty data column with the name "nm".
add_dimension(x, dim = 3.1, add = NULL, nm = "dummy")
The extended MAgPIE object
MAgPIE object which should be extended.
The dimension number of the new dimension (e.g. 3.1)
The name of the new dimension
The name of the first entry in dimension "add".
Jan Philipp Dietrich, Benjamin Bodirsky
add_columns,mbind
add_columns
mbind
a <- maxample("animal") str(add_dimension(a, dim = 3.2)) str(add_dimension(a, dim = 2.3, nm = paste0("d", 1:3)))
Run the code above in your browser using DataLab