View source: R/prep_capture_history.R
prep_capture_history | R Documentation |
Generates a data frame containing all the necessary information for capture histories of tagged fish
prep_capture_history(
compress_df = NULL,
tag_data = NULL,
n_obs_valid = 3,
rec_site = NULL,
delete_upstream = T,
location = c("site", "receiver"),
output_format = c("all", "wide", "long"),
assign_week = T,
week_base = "0901",
append_week = c("first", "last")
)
compress_df |
compressed observational data. Either the output of |
tag_data |
dataframe with metadata for each tag, including columns named |
n_obs_valid |
minumum number of observations made at a location to be considered valid. |
rec_site |
data.frame with 2 columns, |
delete_upstream |
should detections that indicate upstream movement be deleted? |
location |
should detections be grouped by site or receiver? |
output_format |
return either wide or long format, or both plus tag metadata |
assign_week |
Should this function assign a week number to the output? Default is |
week_base |
If assigning week numbers, the date when the numbering should start in "MMDD" format |
append_week |
If assigning weeks, should the week be assigned based on the |
a list containing a capture history in wide format, one in long format, and metadata for each tag
Kevin See and Mike Ackerman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.