build_target: Build target dataset

View source: R/build_target.R

build_targetR Documentation

Build target dataset

Description

Build target dataset

Usage

build_target(
  y,
  growth_rate = FALSE,
  date_freq = c("month", "quarter"),
  start = NULL,
  end = NULL
)

Arguments

y

A tibble/df with two columns : date and target variable.

growth_rate

A logical, indicates whether to compute the growth rate or not - if missing defaults to FALSE.

date_freq

A character "month" or "quarter", indicates the frequency of the date column.

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 tibble/df with quarterly data.


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