Skip to content

Commit

Permalink
Add examples about duplicate removel in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
damianooldoni committed Nov 9, 2023
1 parent 553bf1c commit 2710a3c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions R/get_record_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@
#' minDeltaTime = 20,
#' deltaTimeComparedTo = "lastRecord"
#' )
#'
#' # How to deal with duplicates
#' mica_dup <- mica
#' # create a duplicate at 2020-07-29 05:46:48, location: B_DL_val 5_beek kleine vijver
#' mica_dup$data$observations[4,"sequenceID"] <- mica_dup$data$observations$sequenceID[3]
#' mica_dup$data$observations[4, "deploymentID"] <- mica_dup$data$observations$deploymentID[3]
#' mica_dup$data$observations[4, "timestamp"] <- mica_dup$data$observations$timestamp[3]
#'
#' # duplicate removed
#' get_record_table(mica_dup)
#'
#' # duplicate not removed
#' get_record_table(mica_dup, removeDuplicateRecords = FALSE)
#'
#' # Applying filter(s) on deployments, e.g. deployments with latitude >= 51.18
#' get_record_table(mica, pred_gte("latitude", 51.18))
get_record_table <- function(package = NULL,
Expand Down

0 comments on commit 2710a3c

Please sign in to comment.