week_to_maxdate: Week of year to date conversion

Description Usage Arguments Details Value Author(s)

Description

Convert a week of year string to the last date of the week

Usage

1
week_to_maxdate(year, week)

Arguments

week

a number between 1 and 53

Details

For our purposes, Week 1 of the year starts on 1st Jan and ends on 7th Jan. I am aware that there is more to the logic than this but for now, this simple rule will suffice. For week i, function returns 7 * (i - 1) days have passed from the start of the year. Use lubridate to add 7 * i to 1-1-year

Value

date

Author(s)

Sangeeta Bhatia


annecori/mRIIDSprocessData documentation built on May 29, 2019, 1:16 p.m.