dmea_prepare_climate: Prepare climate data for superposed epoch analysis

View source: R/dm_sea.R

dmea_prepare_climateR Documentation

Prepare climate data for superposed epoch analysis

Description

Prepare climate data for superposed epoch analysis

Usage

dmea_prepare_climate(
  clim,
  vars = "all",
  step = 1,
  unit = c("hours", "days", "mins"),
  agg_fun = "mean",
  var_funs = NULL
)

Arguments

clim

Climate data frame. First column must contain timestamps.

vars

Climate variables to use, or "all".

step

Step size in units.

unit

One of "hours", "days", or "mins".

agg_fun

Aggregation function applied to all variables when var_funs is not supplied.

var_funs

Optional named vector or named list of aggregation functions for individual variables.

Value

A tibble with aggregated climate data.


dendRoAnalyst documentation built on May 20, 2026, 5:07 p.m.