I've inherited a dataset with measurements spanning 1970–2019. The head and tail look something like this:
year month week X1
1970 1 1 0.21
1970 1 2 0.22
1970 1 3 0.34
1970 1 4 0.34
1970 2 5 0.35
1970 2 6 0.25
...
2019 11 47 0.063
2019 12 48 0.062
2019 12 49 0.068
2019 12 50 0.067
2019 12 51 0.074
2019 12 52 0.075
Each observation of X1 was recorded on the first day of each week (i.e., Monday). I'd like to create a date column in ISO 8601 format (yyyy-mm-dd). Given year, month, and week, it should be possible to extract which day of the month the Monday of each week is. Note: measurements were taken every Monday, regardless of holidays.