in.area: Geographic area checking

View source: R/utils.R

in.areaR Documentation

Geographic area checking

Description

Check if the given lon-lat pair falls into specific area. The area is a 4-length vector with lon-lat pairs of two points that confine the area boundaries.

Usage

in.area(lon, lat, area)

Arguments

lon, lat

The point to be checked.

area

The area defined by two points c(lon1, lat1, lon2, lat2).

Examples

in.area(120.1, 30.1, c(120.0,30.0,120.5,30.5))

caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.