How would I convert the following character variables to dates?
strDates <- c("Jan.2008", "Feb.2008") str(strDates) chr [1:2] "Jan.2008" "Feb.2008" dates <- as.Date(strDates, "%b %Y") str(dates) Date[1:2], format: NA NA Any assistance would be greatly appreciated
as.yearmon(strDates, "%b.%Y")