| add_columns | R Documentation | 
Function adds new columns to the existing magpie object.
add_columns(x, addnm = "new", dim = 3.1, fill = NA)
| x | MAgPIE object which should be extended. | 
| addnm | The new elements that should be added to the (sub)dimension | 
| dim | The (sub)dimension to be filled either identified via
name or dimension code (see  | 
| fill | fill value of length 1 for the newly added columns (NA by default) | 
The extended MAgPIE object
Jan Philipp Dietrich, Benjamin Bodirsky
add_dimension,dimCode
a <- maxample("animal")
a2 <- add_columns(a, addnm = c("horse", "magpie"), dim = "species", fill = 42)
getItems(a2, dim = 3)
getItems(a2, dim = 3, split = TRUE)
head(a2[, , "magpie"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.