month_to_quarter: Build quarterly dataset from monthly dataset

View source: R/month_to_quarter.R

month_to_quarterR Documentation

Build quarterly dataset from monthly dataset

Description

Build quarterly dataset from monthly dataset

Usage

month_to_quarter(X, start = NULL, end = NULL)

Arguments

X

A tibble/df with a "date" column at monthly frequency.

start

A character indicating the first date to keep, it must be of the form "YYYY-MM-01" - if missing defaults to NULL.

end

A character indicating the last date to keep, it must be of the form "YYYY-MM-01" - if missing defaults to NULL.

Value

A wider tibble/df with quarterly data. The new df contains one column for each month value (e.g. X_month1, X_month2, X_month3).


aflatoune/approche-directe documentation built on May 30, 2022, 1:56 p.m.