1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-12 17:41:50 +02:00
This commit is contained in:
2019-06-03 17:45:22 +02:00
parent 702da574c0
commit 270aa0dd33
87 changed files with 507 additions and 544 deletions

View File

@ -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