magclass (version 4.107.0)

add_dimension: add_dimension

Description

Function adds a name dimension as dimension number "dim" with the name "add" with an empty data column with the name "nm".

Usage

add_dimension(x, dim = 3.1, add = "new", nm = "dummy")

Arguments

x

MAgPIE object which should be extended.

dim

The dimension number of the new dimension. 4 stands for the second name dimension.

add

The name of the new dimension

nm

The name of the first entry in dimension "add".

Value

The extended MAgPIE object

See Also

add_columns,mbind

Examples

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

# }

Run the code above in your browser using DataLab