I want to set the day of month in a Date to start date of current month (01). Now I use the following:
Date
01
currentDate <- Sys.Date()
lubridate's floor_date keeps it a Date
lubridate
floor_date
library(lubridate) floor_date(Sys.Date(), "month")