I have a csv data file that has hour level data. I have to copy this one week of CSV data to a hourly CSV file for one year. Putting simply, copy 1 week worth of hourly data into 52 weeks (yearly CSV file). How can I do this in R?
For example, I have a weekly data starting from 6/1/20 (Monday) to the end of that week on 6/7/20 (Sunday).
SN TimeStamp OCCUPANCY
1 6/1/20 01:00 2
2 6/1/20 02:00 2
3 6/1/20 03:00 2
4 6/1/20 04:00 0
5 6/1/20 05:00 0
.
.
.
UPTO ONE WEEK (6/7/20)
How can I copy above weekly data for a whole year starting on January 1, 2020?
SN TimeStamp OCCUPANCY
1 1/1/20 01:00 0
2 1/1/20 02:00 0
3 1/1/20 03:00 2
4 1/1/20 04:00 0
5 1/1/20 05:00 5
.
.
.
.
Data from Monday of the weekly table must match with all the Mondays in a year. And so is true for all other days.
Thanks.