where: Where

View source: R/where.R

whereR Documentation

Where

Description

Specify a region by location point (longitude, latitude) and a width and height around that point.

Usage

where(x, y = NULL, wh = 1852 * 60)

## S3 method for class 'where'
print(x, ...)

Arguments

x

longitude

y

latitude

wh

width and height (can be a single value) assumed to be metres

...

in the print method

Details

Width and height will be assumed to be in metres usually, but no units are recorded.

If no input point is given one is generated randomly. The default wh value is approximately the distance along one degree of a great circle on Earth.

Value

a where structure, the location and width/height around it

Examples

where()

where(147, -42, wh = c(2000, 3000))

mdsumner/where documentation built on Aug. 27, 2023, 6:54 a.m.