getCoords: Get Coordinates

View source: R/getCoords.R

getCoordsR Documentation

Get Coordinates

Description

Extracts spatial coordinates of a MAgPIE-object

Usage

getCoords(x, xlab = "x", ylab = "y")

getCoords(x, xlab = "x", ylab = "y") <- value

Arguments

x

MAgPIE object

xlab

label of x-dimension

ylab

label of y-dimension

value

coordinates as two column data.frame the data should be set to (first column = x, second column = y).

Value

coordinates of the MAgPIE-object

Functions

  • getCoords(x, xlab = "x", ylab = "y") <- value: set coordinates

Author(s)

Jan Philipp Dietrich

See Also

as.RasterBrick, getItems, "magpie"

Examples

a <- maxample("animal")
getCoords(a)

magclass documentation built on May 29, 2024, 6:20 a.m.