mirror of
https://github.com/msberends/AMR.git
synced 2025-07-12 17:41:50 +02:00
v0.7.0
This commit is contained in:
@ -11,7 +11,7 @@ age(x, reference = Sys.Date(), exact = FALSE)
|
||||
|
||||
\item{reference}{reference date(s) (defaults to today), will be coerced with \code{\link{as.POSIXlt}} and cannot be lower than \code{x}}
|
||||
|
||||
\item{exact}{a logical to indicate whether age calculation should be exact, i.e. with decimals}
|
||||
\item{exact}{a logical to indicate whether age calculation should be exact, i.e. with decimals. It divides the number of days of \href{https://en.wikipedia.org/wiki/Year-to-date}{year-to-date} (YTD) of \code{x} by the number of days in a year of \code{reference} (either 365 or 366).}
|
||||
}
|
||||
\value{
|
||||
An integer (no decimals) if \code{exact = FALSE}, a double (with decimals) otherwise
|
||||
|
Reference in New Issue
Block a user