I would like to achieve this without loosing the date format
ID Date DayMonth
1 2004-02-06 06-02
2 2006-03-14 14-03
3 2007-07-16 16-07
... ... ...
Thanks
This is one way to do it but is there a faster way and keeping the date format (as.date)
date = df %>% mutate(DayDate=day(Date)) %>% mutate(MonthDate=month(Date)) %>%
unite(DayMonth, c("DayDate", "MonthDate"), sep = "-")