barroso: Metrics from Barroso et al.

View source: R/barroso.R

barrosoR Documentation

Metrics from Barroso et al.

Description

Metrics from Barroso et al.

Usage

barroso(
  lightVar,
  sampling_int,
  unit_out_clength,
  loop = FALSE,
  na_rm = TRUE,
  as_df = TRUE
)

Arguments

lightVar

Numeric vector containing the light data.

sampling_int

Numeric. Sampling interval in seconds.

unit_out_clength

String. Time unit of the bright/dark cluster length. Possible values are ("seconds", "minutes", "hours", "days"), which can be abbreviated.

loop

Logical. Should the data be looped? Defaults to FALSE.

na_rm

Logical. Should missing values be removed? Defaults to TRUE.

as_df

Logical. Should the output be returned as a data frame? Defaults to TRUE.

Value

Data frame or numeric.


steffenhartmeyer/lightdosimetry documentation built on Jan. 29, 2024, 12:48 p.m.