is_in_zone: is_in_zone

View source: R/is_in_zone.R

is_in_zoneR Documentation

is_in_zone

Description

Function to tell if a point is in a delimited zone or not.

Usage

is_in_zone(border, target)

Arguments

border

A dataframe that contains the coordinates of the points that delimit the zone (a square for example)

target

The coordinates of the points you want to check if it is in the zone

Value

A logical to tell if the point is in the zone

Examples

square <- data.frame(x = c(1,1,2,2), y = c(1,2,2,1))
is_in_zone(square, c(1.5,1.5))


mgerault/mineCETSAapp documentation built on April 17, 2025, 7:24 p.m.