dts_aggregate: Aggregate

View source: R/aggregate.R

dts_aggregateR Documentation

Aggregate

Description

Aggregate

Usage

dts_aggregate(
  x,
  dtt = "DateTime",
  colname = dts_colnames(x),
  units = dttr2::dtt_units(x[[dtt]]),
  .dts_fun = mean,
  ...
)

Arguments

x

A dts data frame

dtt

A string specifying the column with the Date or POSIXct values.

colname

A character vector specifying the column(s) with the other values.

units

A string of the units.

.dts_fun

A function which returns a scalar.

...

Optional Additional arguments passed to .dts_fun.

Value

A data frame

Examples

dts_aggregate(dts_data, units = "years", na.rm = TRUE)

poissonconsulting/dts documentation built on March 10, 2024, 6:21 a.m.