Skip to content

Commit

Permalink
Update chunks about duplicates based on new mica dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
damianooldoni committed Nov 9, 2023
1 parent 2710a3c commit fc60b6f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vignettes/record-table.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,18 @@ As described in [Chapter 3](https://jniedballa.github.io/camtrapR/articles/camtr
Again, as for `recordTable()`, we provide an argument, `deltaTimeComparedTo`, to further control how independence between records is assessed. Setting it to `“lastRecord”` returns only records taken `minDeltaTime` minutes after the last record, i.e. `minDeltaTime` minutes after `timestamp` of the last recorded media file. Example with `minDeltaTime = 60` (1 hour):

```{r example_lastRecord}
get_record_table(mica,
minDeltaTime = 60,
mica_dependent <- mica
mica_dependent$data$observations[4,"timestamp"] <- lubridate::as_datetime("2020-07-29 05:55:00")
get_record_table(mica_dependent,
minDeltaTime = 10,
deltaTimeComparedTo = "lastRecord")
```

Setting `deltaTimeComparedTo` to `“lastIndependentRecord”` returns only records taken `minDeltaTime` minutes after the last independent record, i.e. `minDeltaTime` minutes after `timestamp` of the last observation. Example with `minDeltaTime = 60` (1 hour):

```{r example_lastIndependentRecord}
get_record_table(mica,
minDeltaTime = 60,
get_record_table(mica_dependent,
minDeltaTime = 10,
deltaTimeComparedTo = "lastIndependentRecord")
```

Expand Down

0 comments on commit fc60b6f

Please sign in to comment.