powered by
Function adds new columns to the existing magpie object. The new columns are filled with NAs.
add_columns(x, addnm = c("new"), dim = 3.1)
MAgPIE object which should be extended.
The new columns within dimension "dim"
The number of the dimension that should be extended
The extended MAgPIE object
add_dimension,mbind
add_dimension
mbind
# NOT RUN { data(population_magpie) a <- add_columns(population_magpie) str(a) fulldim(a) # }
Run the code above in your browser using DataLab