make_week_index: Make an index data.frame associating week index (wid) to a...

View source: R/week.r

make_week_indexR Documentation

Make an index data.frame associating week index (wid) to a iso yearweek number

Description

Make an index data.frame associating week index (wid) to a iso yearweek number

Usage

make_week_index(yw, col.yw = "yw", col.idx = "wid", stamp = F)

Arguments

yw

int vector of yearweek number

col.yw

chr[1] name of the yw column in the resulting data.frame

col.idx

char[1] name of the week index column in the resulting data.frame

stamp

logical use weekstamp instead of order of the week (depends on the range of weeks)

Value

data.frame(yw=int,wid=int) yw=yearweek number, wid=index of the yw


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.