filter_lex_data: Filter Lex Data

Description Usage Arguments Value

View source: R/filter-lex-data.R

Description

Filters lex data by capture and recapture. Drops all recaptures and detections after first coded harvest and ensures coded as tags removed.

Usage

1
2
3
4
5
filter_lex_data(data, capture = data$capture, recapture = data$recapture,
  sections = stats::setNames(as.list(levels(data$section@data$Section)),
  levels(data$section@data$Section)), station = data$station,
  start_date = min(lubridate::date(capture$DateTimeCapture)),
  end_date = max(lubridate::date(capture$DateTimeTagExpire)))

Arguments

data

The lex_data object.

capture

A data frame of the capture data to use.

recapture

A data frame of the recapture data to use.

sections

A named list of sections to combine (or drop if excluded).

station

A data frame of stations.

start_date

A date of the start.

end_date

A date of the end.

Value

A lex_data object.


poissonconsulting/lexr documentation built on Feb. 18, 2021, 11:12 p.m.