magclass (version 4.107.0)

add_columns: add_columns

Description

Function adds new columns to the existing magpie object. The new columns are filled with NAs.

Usage

add_columns(x, addnm = c("new"), dim = 3.1)

Arguments

x

MAgPIE object which should be extended.

addnm

The new columns within dimension "dim"

dim

The number of the dimension that should be extended

Value

The extended MAgPIE object

See Also

add_dimension,mbind

Examples

Run this code
# NOT RUN {
 data(population_magpie)
 a <- add_columns(population_magpie)
 str(a)
 fulldim(a)

# }

Run the code above in your browser using DataLab