diff --git a/R/get_effort.R b/R/get_effort.R index 1729b3d7..4165dc14 100644 --- a/R/get_effort.R +++ b/R/get_effort.R @@ -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). diff --git a/R/get_record_table.R b/R/get_record_table.R index de3aba23..39b12a9f 100644 --- a/R/get_record_table.R +++ b/R/get_record_table.R @@ -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. #' @@ -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? diff --git a/vignettes/filter-predicates.Rmd b/vignettes/filter-predicates.Rmd index e0dd7763..125f8367 100644 --- a/vignettes/filter-predicates.Rmd +++ b/vignettes/filter-predicates.Rmd @@ -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, @@ -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 %>% diff --git a/vignettes/record-table.Rmd b/vignettes/record-table.Rmd index 1498aafc..03aec8a1 100644 --- a/vignettes/record-table.Rmd +++ b/vignettes/record-table.Rmd @@ -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): @@ -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: diff --git a/vignettes/visualize-deployment-features.Rmd b/vignettes/visualize-deployment-features.Rmd index 306ecb23..b0bfa6f3 100644 --- a/vignettes/visualize-deployment-features.Rmd +++ b/vignettes/visualize-deployment-features.Rmd @@ -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(