| DateToInt | R Documentation | 
Calculate interval unit from dates.
DateToInt(
  from,
  to = as.Date(lubridate::today()),
  units = "years",
  floor = FALSE
)
| from | first date. Date object | 
| to | second date. Default as.Date(today()). | 
| units | years, months, days or hours. Default years. | 
| floor | ... Default FALSE. | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.