% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/individuals_demographic.R
\name{ato_individuals_age}
\alias{ato_individuals_age}
\title{Individual tax data by age range}
\source{
Australian Taxation Office Taxation Statistics Individuals.
Licensed CC BY 2.5 AU.
}
\usage{
ato_individuals_age(year = "latest", sex = c("all", "male", "female"))
}
\arguments{
\item{year}{\code{"YYYY-YY"}, \code{"latest"}, or a vector of years.}

\item{sex}{One of \code{"all"} (default), \code{"male"}, or \code{"female"}.}
}
\value{
An \code{ato_tbl}.
}
\description{
Returns Taxation Statistics Individuals Table 2 (approximately):
counts, total income, taxable income, and tax payable by age
range and (usually) sex. Age ranges are 5-year bands for most
of working life plus wider bands at the tails.
}
\examples{
\donttest{
op <- options(ato.cache_dir = tempdir())
try(ato_individuals_age(year = "2022-23", sex = "female"))
options(op)
}
}
\references{
Australian Taxation Office (annual). \emph{Taxation Statistics:
Individuals explanatory notes}. Age-range breakdowns use the
taxpayer's reported date of birth at lodgement; sex is
self-reported on the return.
}
\seealso{
Other individuals: 
\code{\link{ato_individuals}()},
\code{\link{ato_individuals_occupation}()},
\code{\link{ato_individuals_postcode}()},
\code{\link{ato_individuals_sex}()},
\code{\link{ato_individuals_state}()}
}
\concept{individuals}
