get.crawl.path: Simulate a CRAWL path within a raster object.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/get.crawl.path.R

Description

This function simulates a quasi-continuous CRAWL path that does not leave the borders of a raster object. Output includes the crawl xyt locations and the discretized path on the raster grid.

Usage

1
get.crawl.path(sim.obj, raster, mintime, maxtime, ...)

Arguments

sim.obj

A CRAWL sim.obj.

raster

A raster or raster stack object. The simulated CRAWL path will be required to stay within the confines of the raster object.

mintime

Time to begin simulating the CRAWL path.

maxtime

Time to end simulating the CRAWL path.

...

Legacy. Not used.

Details

This is a wrapper function for CRAWL simulation functions and depends on a valid crawl sim.obj.

Value

t

A vector of times at which the CTCRW path is sampled

xy

A 2-column matrix of xy locations of the CTCRW path

cells.path

A vector of the raster cell of the CTCRW location at each time in "t"

Author(s)

Ephraim M. Hanks

References

Hanks, E. M.; Hooten, M. B. & Alldredge, M. W. Continuous-time Discrete-space Models for Animal Movement The Annals of Applied Statistics, 2015, 9, 145-165

Examples

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

Example output

Loading required package: raster
Loading required package: sp
Loading required package: Matrix
Loading required package: fda
Loading required package: splines

Attaching package: 'fda'

The following object is masked from 'package:graphics':

    matplot

Loading required package: gdistance
Loading required package: igraph

Attaching package: 'igraph'

The following object is masked from 'package:raster':

    union

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union


Attaching package: 'gdistance'

The following object is masked from 'package:igraph':

    normalize

ctmcmove documentation built on May 2, 2019, 5:25 p.m.