calculate_date_summaries: Function to calculate summaries of dates for a continuous...

View source: R/calculate_date_summaries.R

calculate_date_summariesR Documentation

Function to calculate summaries of dates for a continuous time series.

Description

calculate_date_summaries will pad the time series before aggregation to ensure all date steps are present in the return.

Usage

calculate_date_summaries(
  df,
  ...,
  interval = "hour",
  drop_n = FALSE,
  verbose = FALSE,
  progress = FALSE
)

Arguments

df

Input tibble. df must contain date and value variables. The date variable must be a POSIXct date class and the value must be a numeric data type.

...

Grouping variables/specification for the summaries. If location and variable variables are contained in df, these will usually be used as groups. If a column/variable is used, wind direction (wd) will be processed with vector functions.

interval

What interval should the aggregation be? English names and multiples of time intervals are accepted. For example, a valid interval is "5 mins".

drop_n

Should the count of non-missing elements (n) be dropped from the return?

verbose

Should the function give messages?

progress

Should a progress bar be displayed?

Value

Tibble.

Author(s)

Stuart K. Grange

See Also

aggregate_by_date, time_pad


skgrange/threadr documentation built on April 15, 2024, 9:35 p.m.