sMoveRes: sMoveRes

View source: R/sMoveRes.R

sMoveResR Documentation

sMoveRes

Description

Analysis of GPS data losses with the choice spatial resolutions.

Usage

sMoveRes(x, y)

Arguments

x

Object of class spatVector.

y

Numeric vector with target spatial resolutions.

Details

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.

Value

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.

See Also

tMoveRes

Examples

{

 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))

}

RRemelgado/rsMove documentation built on June 3, 2024, 10:07 p.m.