calc_spatial_index: Calculate spatial indices for points in 2D space

View source: R/calc_spatial_index_function.R

calc_spatial_indexR Documentation

Calculate spatial indices for points in 2D space

Description

Function that returns spatial indices (plot numbers) for given coordinate pairs. E.g. for hectares res = 100 m

Usage

calc_spatial_index(
  xcor,
  ycor,
  res = 1,
  minx = NA,
  miny = NA,
  maxx = NA,
  maxy = NA,
  exclude.maxx = T
)

Arguments

xcor

X-coordinate of the point

ycor

Y-coordinate of the point

res

side length of one spatial subunit

minx

minimum X-coordinate

miny

minimum Y-coordinate

maxx

maximum X-coordinate

maxy

maximum Y-coordinate

exclude.maxx

boolean to set whether the given maxx should be excluded or included in the indexing

Value

spatial index for the input point

Author(s)

Nikolai Knapp

Examples

in progress

niknap/slidaRtools documentation built on Oct. 16, 2024, 3:53 p.m.