tk_summary_diagnostics: Group-wise Time Series Summary

View source: R/diagnostics-tk_summary_diagnostics.R

tk_summary_diagnosticsR Documentation

Group-wise Time Series Summary

Description

tk_summary_diagnostics() returns the time series summary from one or more timeseries groups in a tibble.

Usage

tk_summary_diagnostics(.data, .date_var)

Arguments

.data

A tibble or data.frame with a time-based column

.date_var

A column containing either date or date-time values. If missing, attempts to auto-detect the date or date-time column.

Details

Applies tk_get_timeseries_summary() group-wise returning the summary of one or more time series groups.

  • Respects dplyr groups

  • Returns the time series summary from a time-based feature.

Value

A tibble or data.frame with timeseries summary features

Examples

library(dplyr)

# ---- NON-GROUPED EXAMPLES ----

# Monthly Data
m4_monthly %>%
    filter(id == "M750") %>%
    tk_summary_diagnostics()

# ---- GROUPED EXAMPLES ----

# Monthly Data
m4_monthly %>%
    group_by(id) %>%
    tk_summary_diagnostics()



timetk documentation built on Nov. 2, 2023, 6:18 p.m.