View source: R/calculation_definitions.R
interval | R Documentation |
Create an interval between the date_a and date_b
interval(date_a, date_b, unit = "none")
date_a |
vector of dates |
date_b |
vector of dates |
unit |
"none" or "month". if "month", convert all years to months |
can return 'negative' numbers returns NA if either of date_a or date_b is NA returns an arbitrarily large number of years (Inf) if min(date_a, date_b) is -Inf
period(s) in $year, $month and $day
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.