Learn R Programming

magclass (version 3.74)

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.
dim
The number of the dimension that should be extended
addnm
The new columns within dimension "dim"

Value

The extended MAgPIE object

See Also

add_dimension,mbind

Examples

Run this code
 data(population_magpie)
 a <- add_columns(population_magpie)
 str(a)
 fulldim(a)

Run the code above in your browser using DataLab