Description Usage Arguments Details Value Examples
Prepare fishing mortality or tag reporting rate data prior
to fitting a Markov movement model via mmmFit()
.
1 |
x |
|
cols |
|
reps |
|
lims |
|
areas |
|
inst |
|
The rate time step may differ from tag time step, as long as the tag time step is a multiple of the rate time step.
The x
argument must be data frames that contains:
integer()
column giving the date (integers for now).
atomic()
column giving the areas (see areas
argument).
numeric()
column giving the rate for the given area and date.
The cols
argument is a list()
of named elements. The elements
must be character()
string names of columns in x
. There must
be one element for each required element name:
date
: Date as an integer (usually year, month, or day).
area
: Area as an atomic value.
rate
: Numeric rate corresponding to the date and area.
The areas
argument is a list()
of named atomic()
elements.
The elements must correspond to elements in the area column of x
.
The elements must be in the same order in which the areas are to be
indexed. The areas
argument is optional if areas are already
indexed sequentially from one in x
.
A matrix of class mmmRates
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # One tag time step per row
d <- rep(2010:2016, 3)
a <- rep(c(1,2,3), each = 7)
r <- rep(seq(0.1, 0.7, length.out = 7), 3)
x <- data.frame(d = d, a = a, r = r)
cols <- list(date = "d", area = "a", rate = "r")
r1 <- mmmRates(x, cols)
# Twelve tag time steps per row (e.g. monthly tags, yearly rates)
d <- rep(2010:2016, 3)
a <- rep(c(1,2,3), each = 7)
r <- rep(seq(0.1, 0.7, length.out = 7), 3)
x <- data.frame(d = d, a = a, r = r)
cols <- list(date = "d", area = "a", rate = "r")
reps <- 12
lims <- c(2010, 2016)
r2 <- mmmRates(x, cols, reps, lims, inst = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.