| number_of_days | R Documentation | 
A convenience function which is simply as.numeric(end_date -
start_date)
number_of_days(x, start)
x | 
 The end date with class   | 
start | 
 The start date with class   | 
A numeric variable containing the number
of days between the two dates
library(lubridate)
number_of_days(x = ymd("2021-01-05"), start = ymd("2020-12-28"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.