neighbor_quantifier: Calculate statistics around points

View source: R/stats.R

neighbor_quantifierR Documentation

Calculate statistics around points

Description

Calculate statistics around points

Usage

neighbor_quantifier(
  small.file,
  large.file,
  variable = NULL,
  method = "sp",
  crs = 4326,
  radius = 20,
  length = 100,
  plot.fig = TRUE,
  save.fig = TRUE,
  fig.name = NULL
)

Arguments

small.file

A data frame containing points around which statistics are computed; must contain 'lat' and 'long'.

large.file

A data frame containing points upon which statistics are computed; must contain 'lat' and 'long'.

variable

Column name upon which to compute statistics

method

Either 'sp' to compute spatial statistics in Cartesian space, using the sp package, or 'sf' to compute statistics in geographic space using the sf package.

crs

Coordinate reference system for using the 'sf' method (default is 4326 for WGS84 projection)

radius

Length of radius (in nautical miles) around points in small.file used to compute spatial polygons

length

Length of vector used to create polygon nodes

plot.fig

Plot results (T/F)

save.fig

Save figure (T/F)

fig.name

Name of figure.

Value

A data frame with the number (n), mean, and standard deviation of the variable within each polygon.


kstierhoff/atm documentation built on June 10, 2025, 8:55 a.m.