Skip to content

Commit

Permalink
Merge pull request #30 from tscnlab/development_dosimetry-metrics
Browse files Browse the repository at this point in the history
Development dosimetry metrics
  • Loading branch information
JZauner authored Sep 9, 2024
2 parents f9a4f06 + d639cb8 commit 25a1651
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/metric_pulses_above_threshold.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
#' @param min.length The minimum length of a pulse. Can be either a
#' \link[lubridate]{duration} or a string. If it is a string, it needs to be a valid
#' \link[lubridate]{duration} string, e.g., `"1 day"` or `"10 sec"`. Defaults to
#' `"8 mins"` as in Wilson et al. (2018).
#' `"2 mins"` as in Wilson et al. (2018).
#' @param max.interrupt Maximum length of each episode of interruptions. Can be either a
#' \link[lubridate]{duration} or a string. If it is a string, it needs to be a valid
#' \link[lubridate]{duration} string, e.g., `"1 day"` or `"10 sec"`. Defaults to
#' `"2 mins"` as in Wilson et al. (2018).
#' `"8 mins"` as in Wilson et al. (2018).
#' @param prop.interrupt Numeric value between `0` and `1` specifying the
#' maximum proportion of the total number of interruptions. Defaults to `0.25`
#' as in Wilson et al. (2018).
Expand Down Expand Up @@ -85,8 +85,8 @@ pulses_above_threshold <- function(Light.vector,
Time.vector,
comparison = c("above", "below"),
threshold,
min.length = "8 mins",
max.interrupt = "2 mins",
min.length = "2 mins",
max.interrupt = "8 mins",
prop.interrupt = 0.25,
epoch = "dominant.epoch",
return.indices = FALSE,
Expand Down
8 changes: 4 additions & 4 deletions man/pulses_above_threshold.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 25a1651

Please sign in to comment.