Description Usage Arguments Details Value Author(s)
Convert a week of year string to the last date of the week
1 | week_to_maxdate(year, week)
|
week |
a number between 1 and 53 |
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
date
Sangeeta Bhatia
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.