magclass (version 4.107.0)

place_x_in_y: place_x_in_y

Description

Function positions magpie object x into magpie object y.

Usage

place_x_in_y(x, y, expand = T)

Arguments

x

Object to be placed.

y

Object in which x shall be placed

expand

T: if x is larger than y, new columns are added.

Value

The combination of x and y. x overwrites y values which are in the same place.

See Also

add_dimension,add_columns,mbind

Examples

Run this code
# NOT RUN {
 data(population_magpie)
 x <- population_magpie[,"y1995",]*0.2
 a <- place_x_in_y(x, population_magpie)

# }

Run the code above in your browser using DataLab