I am having a data frame like this
df <- data.frame(
'Week' = c(27,28,29),
'date' = c("2019-W (01-Jul)","2019-W (08-Jul)","2019-W (15-Jul)"))
I need to append Week column after W in date column
expecteddf <- data.frame(
'Week' = c(27,28,29),
'date' = c("2019-W27 (01-Jul)","2019-W28 (08-Jul)","2019-W29 (15-Jul)"))
How can I achieve this in R?
Thanks in advance!!