Learn R Programming

antaresEditObject (version 0.9.0)

add_week_number_column_to_ts: Add week number column to a data.time of time series type

Description

If timeId column exists, add a week number column. A week is 168 consecutive hours (= 24 * 7).

Usage

add_week_number_column_to_ts(xts)

Value

the data.table xts with a new column week.

Arguments

xts

a data.table of time series type.