Skip to content

Commit

Permalink
correct spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
PietrH committed Jul 12, 2023
1 parent 339aad2 commit 74e7f59
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/get_effort.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#' @return A tibble data frame with following columns:
#' - `deploymentID`: Deployment unique identifier.
#' - `effort`: Effort expressed in the unit passed by parameter `unit`.
#' - `unit`:Tthe unit used to express the effort.
#' - `unit`: The unit used to express the effort.
#' One of the values available for parameter `unit`.
#' - `effort_duration`: A duration object (duration is a class from lubridate
#' package).
Expand Down
4 changes: 2 additions & 2 deletions R/get_record_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' The record table is a concept developed within the camtrapR package, see
#' [this article](
#' https://jniedballa.github.io/camtrapR/articles/camtrapr3.html).
#' See also the function documentation for [camtraptR::recordTable()](
#' See also the function documentation for [camtrapR::recordTable()](
#' https://jniedballa.github.io/camtrapR/reference/recordTable.html).
#' **Note**: All dates and times are expressed in UTC format.
#'
Expand All @@ -26,7 +26,7 @@
#' species (`deltaTimeComparedTo = "lastIndependentRecord"`), or
#' `minDeltaTime` minutes after the last record (`deltaTimeComparedTo =
#' "lastRecord"`).
#' If `minDeltaTime` is 0, `deltaTimeComparedTo` must be `NULL` (deafult).
#' If `minDeltaTime` is 0, `deltaTimeComparedTo` must be `NULL` (default).
#' @param removeDuplicateRecords Logical.
#' If there are several records of the same species at the same station at
#' exactly the same time, show only one?
Expand Down
4 changes: 2 additions & 2 deletions vignettes/filter-predicates.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ get_n_species(mica,

### Multiple predicates

As shown above, you can combine several predicates for more complex filtering. E.g. calculate the number of species detected by the deployments with one of the location names _B_ML_val 06_Oostpolderkreek_ and _B_ML_val 07_Sint-Anna_, or deployments souther than 50.7 degrees:
As shown above, you can combine several predicates for more complex filtering. E.g. calculate the number of species detected by the deployments with one of the location names _B_ML_val 06_Oostpolderkreek_ and _B_ML_val 07_Sint-Anna_, or deployments further south than 50.7 degrees:

```{r pred_or_get_n_species}
get_n_species(mica,
Expand Down Expand Up @@ -183,7 +183,7 @@ get_n_species(mica,
pred_gt("longitude", 4))
```

This is similar to the behvaior of dplyr's `filter()` function, where this:
This is similar to the behaviour of dplyr's `filter()` function, where this:

```{r example_dplyr_filter_and}
mica$data$deployments %>%
Expand Down
4 changes: 2 additions & 2 deletions vignettes/record-table.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The following remarks are both valid for camtrapR's function `recordTable()` an

### Temporal independence

As described in [Chapter 3](https://jniedballa.github.io/camtrapR/articles/camtrapr3.html) of camptrapR documentation, we could filter observations using an adjustable criterion for temporal independence between subsequent records of the same species in an attempt to remove non-independent records. As for `recordTable()`, this is achieved via argument `minDeltaTime`, defined as the minimum time difference (in minutes) between two records of the same species at the same station which are to be considered independent. As shown above, the default is 0, causing the function to return all records.
As described in [Chapter 3](https://jniedballa.github.io/camtrapR/articles/camtrapr3.html) of camtrapR documentation, we could filter observations using an adjustable criterion for temporal independence between subsequent records of the same species in an attempt to remove non-independent records. As for `recordTable()`, this is achieved via argument `minDeltaTime`, defined as the minimum time difference (in minutes) between two records of the same species at the same station which are to be considered independent. As shown above, the default is 0, causing the function to return all records.

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):

Expand Down Expand Up @@ -104,7 +104,7 @@ get_record_table(mica, stationCol = "locationID")

### Remove duplicates

It can happen that "duplicates" occur, e.g. when two distinct observations of the same species are made based on the same sequence of images, e.g. same species but different `lifeStage` or `sex`. You can decide what to do with these duplicates by using the argument `removeDuplicateRecords`: by default it is equalt to `TRUE`. The duplicates are therefore removed. To not remove them, set `removeDuplicateRecords` equal to `FALSE`.
It can happen that "duplicates" occur, e.g. when two distinct observations of the same species are made based on the same sequence of images, e.g. same species but different `lifeStage` or `sex`. You can decide what to do with these duplicates by using the argument `removeDuplicateRecords`: by default it is equal to `TRUE`. The duplicates are therefore removed. To not remove them, set `removeDuplicateRecords` equal to `FALSE`.

Let's create an easy example with duplicates based on `mica` datapackage:

Expand Down
2 changes: 1 addition & 1 deletion vignettes/visualize-deployment-features.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ map_dep(
)
```

Tipically the color is part of the URL. Here below two examples where we change the color of the default icon to green (2ECC71):
Typically the colour is part of the URL. Here below two examples where we change the color of the default icon to green (2ECC71):

```{r specify_zero_colors_value_example_1}
map_dep(
Expand Down

0 comments on commit 74e7f59

Please sign in to comment.