Calculate the duration between two dates
Arguments
- from
<date>
Start date
- to
<date>
End date
Value
<dbl>
vector of the duration between the two dates
Examples
duration_vec(
from = lubridate::today() - 366,
to = lubridate::today())
#> [1] "31622400s (~1 years)"