Skip to content

Checks, whether object contains coordinates.

Usage

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

Arguments

x

MAgPIE object

xlab

label of x-dimension

ylab

label of y-dimension

Value

Boolean indicating whether coordinates were found or not

Author

Jan Philipp Dietrich

Examples


hasCoords(maxample("pop"))
#> [1] FALSE
hasCoords(maxample("animal"))
#> [1] TRUE