% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/life_table_core.R
\name{life_table}
\alias{life_table}
\title{Construct a life table}
\usage{
life_table(x, lx = NULL, qx = NULL, px = NULL, S0 = NULL, radix = 1e+05)
}
\arguments{
\item{x}{Numeric vector of ages.}

\item{lx}{Numeric vector of \eqn{l_x} values.}

\item{qx}{Numeric vector of \eqn{q_x} values.}

\item{px}{Numeric vector of \eqn{p_x} values.}

\item{S0}{Numeric vector of \eqn{S_0(x)} values.}

\item{radix}{Radix used when converting \code{S0} to \code{lx}, or when
building from \code{qx} or \code{px}.}
}
\value{
A data frame with class \code{"life_table"}.
}
\description{
Build a discrete life table from one of \code{lx}, \code{qx}, \code{px},
or \code{S0}.
}
