I have a dataframe with a column containing Date and time, and I have created a new column containing Year-Week with this formula,
Path LogTime
HJH 2015-06-19 01:57:11
GTF 2015-07-31 08:23:34
R 2015-07-21 11:52:31
Path2$Week<-strftime(Path2$LogTime,format="%Y-%W",tz="CET")
Path LogTime Week
HJH 2015-06-19 01:57:11 2015-24
GTF 2015-07-31 08:23:34 2015-30
R 2015-07-21 11:52:31 2015-29
I now want to add another week to it, so instead of it saying
Path LogTime Week NEW Week
HJH 2015-06-19 01:57:11 2015-24 2015-25
GTF 2015-07-31 08:23:34 2015-30 2015-31
R 2015-07-21 11:52:31 2015-29 2015-30
How can I do this in R? I have trouble finding my way in the maze of the dates in R