check.coords: Check coordinates

Description Usage Arguments Note

Description

Checks if coordinates are within a cell.

Usage

1
2
check.coords(x.val, y.val, x.lower.bound, x.upper.bound, y.lower.bound,
  y.upper.bound)

Arguments

x.val

The X coordinatea

y.val

The Y coordinate

x.lower.bound

The lower x coordinate of the cell

x.upper.bound

The upper x coordinate of the cell

y.lower.bound

The lower y coordinate of the cell

y.upper.bound

The upper y coordiante of the cell

Note

Used by make.disp.prob.v2

WARNING Points that fall exactly on a cell's border are dropped. While this is bad, this is expected to be relatively minor, as the odds of getting a number that lands exactly on a cell's border is pretty low, given the number of decimal places.


akeyel/spatialdemography documentation built on May 12, 2019, 4:43 a.m.