monthlyToWeekly: Converts monthly data to weekly.

Description Usage Arguments Examples

View source: R/monthlyToWeekly.R

Description

Roll the end of months based on days overlapping in the week.

Usage

1

Arguments

x

data.table. One columns called "Month" (a Date), and variable(s) to convert.

Examples

1
2
3
4
5
6
7
x <- data.table::data.table(Month = seq.Date(as.Date("2017-01-01"), as.Date("2017-12-01"), by ="month"))
x[, Var1 := c(sample(50:100, size = 12))]
x[, Var2 := c(sample(50:100, size = 12))]
x[, Var3 := c(sample(50:100, size = 12))]

x
monthlyToWeekly(x)

Braja93/braja documentation built on June 1, 2017, 5:19 p.m.