path2ctmc: Function to turn a discrete-time continuous-space path into a...

Description Usage Arguments Value Examples

View source: R/path2ctmc.R

Description

This function takes a movement path defined by xyt values (not necessarily equally spaced in time), and converts it into a CTMC path (a continuous-time discrete-space path on grid cells in a raster).

Usage

1
path2ctmc(xy, t, rast)

Arguments

xy

A matrix of x,y locations at T time points.

t

A vector of T times associated with the T locations in "xy".

rast

A raster object or raster stack object that will define the discrete-space grid cells for the CTMC movement path.

Value

ec

A vector of the sequential grid cells (the embedded chain) in the CTMC movement path

rt

A vector of residence times in each sequential grid cell in the CTMC movement path

trans.times

A vector of times in which the movement path enters the grid cell in "ec".

Examples

1
2
3
## For example code, do
##
## > help(ctmcMove)

ctmcMove documentation built on May 2, 2019, 5:55 p.m.