lnglat2gridcell: Query Coordinates for Grid Identifier

Description Usage Arguments Value Author(s) References See Also Examples

Description

The function returns the grid identifier based on a longitude and latitude coordinate pair.

Usage

1

Arguments

x

Longitude in decimal degrees.

y

Latitude in decimal degrees.

Value

A character vector.

Author(s)

Roland Kaiser

References

Niklfeld, H. (1971): Bericht über die Kartierung der Flora Mitteleuropas. Taxon 20: 545-571.

See Also

floragrid, gridcell2lnglat

Examples

1
2
3
4
5
6
7
8
lnglat2gridcell(13, 47)

data(sbg)
xy <- coordinates(sbg)
d <- data.frame(t(apply(xy, 1, function (x) lnglat2gridcell(x[ 1 ], x[ 2 ]) ) ),
                stringsAsFactors = FALSE)

all(as.character(sbg$GRIDCELL) == as.character(d$GRIDCELL))

kardinal-eros/sabotag-tools documentation built on May 20, 2019, 7:21 a.m.