mortalityTables.list: List all available sets of life tables provided by the...

Description Usage Arguments Examples

View source: R/mortalityTables.list.R

Description

List all available sets of life tables provided by the MortalityTables-package package An existing life table can then be loaded with mortalityTables.load.

Usage

1
2
3
4
5
mortalityTables.list(
  pattern = "*",
  package = c("^MortalityTables", "^PensionTables"),
  prefix = "MortalityTables"
)

Arguments

pattern

Restrict the results only to life table sets that match the pattern with wildcards (default: "*" to show all sets)

package

The package that contains the desired dataset in its extdata/ directory. Defaults to the "MortalityTables" package. Multiple packages can be given as a vector, even using regular expressions.

prefix

The file prefix, defaults to MortalityTables. Can be overridden to list other types of files, like "PensionTables"

Examples

1
2
3
4
mortalityTables.list()
mortalityTables.list("Austria_*")
mortalityTables.list("*Annuities")
mortalityTables.list(package = c("MyCustomPackage"))

kainhofer/r-mortality-tables documentation built on Dec. 17, 2020, 3:53 a.m.