condense_dt: Condense time series in a 'data.frame' to a lower frequency

View source: R/date_aggregate.R

condense_dtR Documentation

Condense time series in a data.frame to a lower frequency

Description

Condense time series in a data.frame to a lower frequency

Usage

condense_dt(
  dates_df,
  to_period = c("weekly", "monthly", "quarterly", "annual"),
  aggregate_by = c("last", "sum", "avg", "median")
)

Arguments

dates_df

data.frame containing a date column and values

to_period

string indicating the frequency to convert data to

aggregate_by

string indicating how to aggregate data

Value

data.frame


ces0491/dateR documentation built on April 6, 2022, 10:17 p.m.