sMoveRes | R Documentation |
Analysis of GPS data losses with the choice spatial resolutions.
sMoveRes(x, y)
x |
Object of class spatVector. |
y |
Numeric vector with target spatial resolutions. |
The function simulates how many unique combinations of animal observations and environmental data would be preserved when choosing an environmental dataset with the resolution given in y. It also estimates simulates how many unique pixel regions (i.e., groups of spatially connected pixels) would be preserved after accounting for pseudo-replication. Finally, For each spatial resolution, the function reports the 'pixel ratio' and the 'region ratio', i.e., the number of pixels and regions divided by the number of GPS records.
A list.
The function returns a list with:
stats - Summary statistics reporting on the number of unique samples and sample regions per spatial resolution.
plot - Plot representing the change in number of samples and sample regions per spatial resolution.
tMoveRes
{
require(terra)
# read movement data
shortMove = read.csv(system.file('extdata',
'shortMove.csv', package="rsMove"))
# convert observations to vector
shortMove = vect(shortMove, geom=c("x","y"), crs="EPSG:32632")
# test function for 5, 10 20 and 30 m
a.res = sMoveRes(shortMove, c(5, 10, 20, 30))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.