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

1
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

Author(s)

Benjamin Bodirsky

See Also

add_columns,mbind

Examples

1
2
3
4
 data(population_magpie)
 a <- add_dimension(population_magpie)
 str(a)
 fulldim(a)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.