to_period: Function to calculate a *lubridate* 'period' date class based...

View source: R/to_period.R

to_periodR Documentation

Function to calculate a lubridate period date class based on two dates.

Description

Function to calculate a lubridate period date class based on two dates.

Usage

to_period(date_one, date_two, round = FALSE, as.character = FALSE)

Arguments

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?

Value

Period or character vector.

Author(s)

Stuart K. Grange

See Also

as.period


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.