utility: Utility Functions
Description
Minor function(s) exported for use in related packages.Usage
getMeanSD(xy)
maskarea(mask, sess = 1)
masklength(mask, sess = 1)
edist(xy1, xy2)
Arguments
xy
2-column matrix or dataframe
xy1
2-column matrix or dataframe
xy2
2-column matrix or dataframe
mask
mask or linearmask object
Value
- For
getMeanSD
, a dataframe with columns `x' and `y' and two
rows, mean and SD.
For maskarea
, the summed area of mask cells in hectares (ha).
For masklength
, the summed length of mask cells in kilometers (km).
For edist
, a matrix with dim = c(nrow(xy1), nrow(xy2)).
Details
For masklength
the input should be a linear mask from secrlinear.
edist
computes the Euclidean distance between each point in xy1 and each point in xy2. (This duplicates the functionality of `rdist' in package fields).