Diff Days R Lubridate

library(lubridate)
difftime(ymd("2018-12-31"), ymd('2010-01-01'), "days")
marcofaga