View source: R/datetime_tools.R
consecutive_month | R Documentation |
Sometimes it's helpful to be able to break down elapsed time in more granular units, like being able to say, "I am in the 15th month of this experiment."
consecutive_month(from, to)
from |
(Character or Numeric) A date in the ISO-8601 form |
to |
(Character) A date in the ISO-8601 form |
A numeric vector for the number of months elapsed.
Desi Quintans (http://www.desiquintans.com)
# These are the same thing.
consecutive_month(2015, "2016-02-04")
consecutive_month("2015-01-01", "2016-02-04")
#> [1] 14
consecutive_month("2015-02-01", "2016-02-04")
#> [1] 13
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.