AMR/man/age.Rd

23 lines
565 B
Plaintext
Raw Normal View History

2018-12-15 22:40:07 +01:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/age.R
\name{age}
\alias{age}
\title{Age in years of individuals}
\usage{
2018-12-22 22:39:34 +01:00
age(x, reference = Sys.Date())
2018-12-15 22:40:07 +01:00
}
\arguments{
2018-12-22 22:39:34 +01:00
\item{x}{date(s), will be coerced with \code{\link{as.POSIXlt}}}
2018-12-15 22:40:07 +01:00
2018-12-22 22:39:34 +01:00
\item{reference}{reference date(s) (defaults to today), will be coerced with \code{\link{as.POSIXlt}}}
2018-12-15 22:40:07 +01:00
}
\value{
Integer (no decimals)
}
\description{
Calculates age in years based on a reference date, which is the sytem time at default.
}
\seealso{
2018-12-22 22:39:34 +01:00
\code{\link{age_groups}} to splits age into groups
2018-12-15 22:40:07 +01:00
}