AddXToWeekly: Adds seasonal week to dataset

Description Usage Arguments Value Examples

View source: R/std_QuasipoissonTestPredictData.r

Description

We often want to graph seasons. This function adds the seasonal week to the dataset data as the variable x.

Usage

1

Arguments

data

A data.table containing the variable week

Value

A data.table with the extra variable x

Examples

1
2
3
library(data.table)
d <- data.table(week = 1:52)
AddXToWeekly(d)

raubreywhite/dashboards_sykdomspuls documentation built on April 27, 2020, 6:11 p.m.