orderSites: orderSites

Description Usage Arguments Value

Description

Orders known sites (from the knownsite_coords dataframe) according to their straight-line (Euclidean) distance from a given observed raster cell. It is used when calculating and applying weights to the LAMAP values.

Usage

1
orderSites(observed, knownsite_coords)

Arguments

observed

A single row dataframe with at least one column named 'x' and one named 'y', corresponding to the xy coordinates of a raster cell in the 'rasterdata' raster object.

knownsite_coords

A dataframe constucted with the 'knownsiteCoords' function, or a dataframe with at least three columns named 'id','x', and 'y'

Value

A dataframe with a column of sorted distances.


wccarleton/Rlamap documentation built on May 24, 2019, 7:50 a.m.