Skip to content
Snippets Groups Projects
Commit 69a862fb authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Start adding examples to the docs

parent 160c6935
No related branches found
No related tags found
No related merge requests found
...@@ -25,4 +25,11 @@ Return the age shift of the age-shifted life table given the birth year ...@@ -25,4 +25,11 @@ Return the age shift of the age-shifted life table given the birth year
\item \code{mortalityTable.ageShift}: Return the age shift of the age-shifted life table \item \code{mortalityTable.ageShift}: Return the age shift of the age-shifted life table
given the birth year given the birth year
}} }}
\examples{
mortalityTables.load("Austria_Annuities")
ageShift(AVOe2005R.male.av, YOB=1910)
ageShift(AVOe2005R.male.av, YOB=1955)
ageShift(AVOe2005R.male.av, YOB=2010)
}
...@@ -37,4 +37,11 @@ Return the defined ages of the life table ...@@ -37,4 +37,11 @@ Return the defined ages of the life table
\item \code{mortalityTable.observed}: Return the defined ages of the observed life table \item \code{mortalityTable.observed}: Return the defined ages of the observed life table
}} }}
\examples{
mortalityTables.load("Austria_*", wildcard=TRUE)
ages(AVOe2005R.male)
ages(AVOe1996R.male)
ages(mort.AT.census.2011.male)
}
...@@ -27,4 +27,9 @@ Return the base table of the life table ...@@ -27,4 +27,9 @@ Return the base table of the life table
\item \code{mortalityTable.period}: Return the base table of the life table \item \code{mortalityTable.period}: Return the base table of the life table
}} }}
\examples{
mortalityTables.load("Austria_Annuities")
baseTable(AVOe2005R.male)
}
...@@ -27,4 +27,9 @@ Return the base year of the life table ...@@ -27,4 +27,9 @@ Return the base year of the life table
\item \code{mortalityTable.mixed}: Return the base year of the life table \item \code{mortalityTable.mixed}: Return the base year of the life table
}} }}
\examples{
mortalityTables.load("Austria_Annuities")
baseYear(AVOe2005R.male)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment