to_period | R Documentation |
period
date class based on
two dates.Function to calculate a lubridate period
date class based on
two dates.
to_period(date_one, date_two, round = FALSE, as.character = FALSE)
date_one |
First date. |
date_two |
Second date. |
round |
Number of decimal points to round to. Default is no rounding. |
as.character |
Should the period be formated and returned as a character? |
Period
or character vector.
Stuart K. Grange
as.period
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.