Sorry about another date-question, but I couldn't find an answer. I have a date-type "September 2017" and need to convert it to "30.09.2017" (last day of month — for all months of all years). I've tried:
date <- as.Date(date), "%B %d %Y")
+ variations of %d%m%y
And that:
library(zoo)
date <- as.Date(as.yearmon(date))
But every time I have NA
.