% 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 l_x values.}

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

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

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

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