rsMove (version 0.2.1)

sMoveRes: sMoveRes

Description

Evaluates how a change in raster resolution impacst the availability of data points.

Usage

sMoveRes(xy = xy, pxr = pxr)

Arguments

xy

Object of class SpatialPoints or SpatialPointsDataFrame.

pxr

vector of target resolutions.

Value

A list.

Details

Given a vector of pixel resolutions (pxr), the function determines the number of unique pixels and unique pixel groups. Additionaly, for each pixel, the function returns the corresponding pixel indices per resolution showing which samples would be grouped. The function returns a data frame ($stats) and a plot ($plot) with the statistics per resolution as well as a data frame with the pixel indices per resolution ($indices).

See Also

tMoveRes specVar

Examples

Run this code
# NOT RUN {
{

 require(raster)

 # read movement data
 moveData <- read.csv(system.file('extdata', 'konstanz_20130804.csv', package="rsMove"))
 moveData <- SpatialPointsDataFrame(moveData[,1:2], moveData)

 # test function for 5, 10 20 and 30 m
 a.res <- sMoveRes(xy=moveData, pxr=c(5, 10, 20, 30))

}
# }

Run the code above in your browser using DataCamp Workspace