I have a data frame (df) like the following:
Date Arrivals 2014-07 100 2014-08 150 2014-09 200
I know that I can con
Using lubridate, you can add a month and subtract a day to get the last day of the month:
lubridate
library(lubridate) ymd(paste0(df$Date, '-01')) + months(1) - days(1) # [1] "2014-07-31" "2014-08-31" "2014-09-30"