View source: R/max_buff_days.r
max_buff_days | R Documentation |
Identify the number of preceding and antecdedent zeros in the catch record for an individual trap catch sequence.
max_buff_days(df, trap)
df |
A data frame containing catch records for one
|
trap |
A vector of length one containing the |
Function max_buff_days
is a helper function utilized in the
estimation of catch, and assists to identify preceding and antecedent
zeros. It works in conjunction with function F.chuck.zeros
.
A vector containing three values. The first contains the row index
of the first non-zero / non-NA
in the catch record provided via data
frame df
. The second contains the row index of the last non-zero /
non-NA
in the catch record provided via data frame df
. The
third contains the length of the vector containing
trapVisitID
-specific fish counts (vector n.tot
).
WEST Inc.
F.chuck.zeros
## Not run: # ---- Find the first and last non-zero and non-NA catch record # ---- for trap "12345". vec <- max.buff.days(df,"12345") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.