Skip to content

Commit

Permalink
Filtered releases out of the receiver dataframe when deriving it from…
Browse files Browse the repository at this point in the history
… detections.
  • Loading branch information
jackVanish committed Feb 20, 2024
1 parent 22cb369 commit d01a5bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/otn_imos_column_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,15 @@ otn_imos_column_map <- function(det_dataframe, rcvr_dataframe = NULL, tag_datafr
##' @keywords internal
##'
derive_rcvr_from_det <- function(det_dataframe) {
#To start, we will filter the releases out of our detections dataframe.
no_releases <- det_dataframe %>% filter(receiver != "release")

# The first thing we need to do is gin up some inferred min and max deployment dates.
# We'll use the following code to do so.
rcvr_grouped <- NULL

# Start by grouping the detections by station, and ordering them by date.
rcvr_grouped_list <- det_dataframe %>%
rcvr_grouped_list <- no_releases %>%
group_by(station) %>%
arrange(datecollected, .by_group = TRUE)

Expand Down

0 comments on commit d01a5bc

Please sign in to comment.