Learn R Programming

magclass (version 5.24.7)

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 {
 pop <- maxample("pop")
 x <- pop[,"y1995",]*0.2
 a <- place_x_in_y(x, pop)

# }

Run the code above in your browser using DataLab