Skip to contents

sim.ctags allows to simulate mark-recapture tags.

Usage

sim.ctags(
  grid,
  par = NULL,
  env = NULL,
  n = 300,
  effort = NULL,
  trange = NULL,
  dt = NULL,
  trange.rel = NULL,
  xrange.rel = NULL,
  yrange.rel = NULL,
  trange.rec = NULL,
  by = 0.05,
  knots.tax = NULL,
  knots.dif = NULL,
  funcs = NULL,
  verbose = TRUE
)

Arguments

grid

a grid.

par

optional; allows to specify all or some of the parameters used for simulation. Default: NULL.

env

optional; allows to specify environmental fields that are used for simulation. Default: NULL.

n

number of tags. Default: 300.

effort

optional; allows to specify effort fields that are used for simulation. Default: NULL.

trange

range model time. Default: NULL.

dt

optional; resolution of model time steps. If NULL (default), the default time step of setup.momo.data is used (0.1).

trange.rel

optional; allows to specify a specific part of the time series in which tags are released. Default: NULL.

xrange.rel

optional; allows to specify a specific part of the x range of the spatial domain in which tags are released. Default: c(0.4,0.6).

yrange.rel

optional; allows to specify a specific part of the y range of the spatial domain in which tags are released. Default: c(0.4,0.6).

trange.rec

optional; allows to specify a specific part of the time series in which tags are recaptured. Default: NULL.

by

time step of the tag simulation model. Default: 0.05.

knots.tax

optional; allows to specify knots for the taxis component. Default: NULL.

knots.dif

optional; allows to specify knots for the diffusion component. Default: NULL.

funcs

optional; allows to specify movement functions. If NULL (default), the function get.sim.funcs is used.

verbose

If TRUE, print information to console. Default: TRUE.

Value

A data frame with simulate mark-recaptured tags.

Examples

data(skjepo)

ctags <- sim.ctags(skjepo$grid)
#> Error in apply(res$knots.tax, 2, duplicated): dim(X) must have a positive length