Description Usage Arguments Value See Also Examples
Computes the standard deviation of spatially referenced data using a moving window
1 |
data |
Dataset containing data used to calculate standard deviation and x, y coordinates. |
xWindow |
Number of neighbors to include in the x orientation of the moving window, including the observation the window centers on. |
yWindow |
Optional. Number of neighbors to include in the y orientation of the moving window, including the observation the window centers on. |
spatialCoords |
A vector of column name(s) containing spatial coordinates within the dataset. The x coordinates must be designated first, followed by the y coordinates. If |
groups |
Optional. Names of column(s) containing information used to subset the data into seperate groups for processing. Useful if dataset contains multiple discrete study areas. |
na.ignore |
Logical. If FALSE (default) NA values are assumed to be the standard deviation of non-NA values within the moving window, if TRUE NA values remain NA. |
A data.table of spatially calculated standard deviation values
runsd
1 2 3 4 5 6 | data(vels)
#Standard deviation of velocities along ADCP transects
velSpatialSD <- spatialSD(vels, 21, spatialCoords = "tDist", groups = "transectName")
#Standard devation of velocities along ADCP transects and ensambles
data(cellVels)
velSpatialSD <- spatialSD(cellVels, 21, 5, spatialCoords = c("tDist","cellDepth"), groups = "transectName")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.