neighbor_quantifier | R Documentation |
Calculate statistics around points
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
)
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 |
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. |
A data frame with the number (n), mean, and standard deviation of the variable
within each polygon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.