check_point_in_aquifer: Check point is in bounds

Description Usage Value Examples

View source: R/anem_geoprocessing.R

Description

Check to see if one or more points falls within aquifer boundaries.

Usage

1
check_point_in_aquifer(x, y, aquifer)

Value

Function returns TRUE if the point is inside aquifer boundaries or on the boundary. If the point is outside the boundaries, returns FALSE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
aquifer <- aquifer_unconfined_example
x <- 100
y <- 100
x <- seq(0,100,by=50)
y <- seq(0,100,by=50)
check_point_in_aquifer(200,200,aquifer)
check_point_in_aquifer(-200,0,aquifer)
check_point_in_aquifer(seq(0,100,by=50),seq(0,100,by=50),aquifer)
check_point_in_aquifer(seq(0,1000,by=500),seq(0,100,by=500),aquifer)
x <- rep(500,3)
y <- seq(0,1000,by=500)
check_point_in_aquifer(x,yseq(0,1000,by=500),aquifer)

## End(Not run)

gopalpenny/anem documentation built on Dec. 20, 2020, 5:27 a.m.