sim.atags
allows to simulate archival tags.
Usage
sim.atags(
grid,
par = NULL,
env = NULL,
n = 30,
effort = NULL,
trange = NULL,
dt = NULL,
trange.rel = NULL,
xrange.rel = NULL,
yrange.rel = NULL,
trange.rec = NULL,
by = 0.01,
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:
30
.- 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.01
.- 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
.
Examples
data(skjepo)
atags <- sim.atags(skjepo$grid)
#> Error in apply(res$knots.tax, 2, duplicated): dim(X) must have a positive length