pT.setDimInfo {MortalityTables} | R Documentation |
Set additional information (year, description, type of risk, sex, etc.) for the pension table.
Description
A mortalityTable can store additional information to be used e.g. as additional
dimensions in ggplot calls. Typically, these information include sex, base
population, observation year, type of data (raw, smoothed), country, type of
risk, etc. These additional dimensions are stored in the tbl@data
list
and will be used by plotMortalityTables and similar functions.
pT.setDimInfo
works just like mT.setDimInfo
, except that it sets
the information for all sub-tables of the pension table at the same time.
Usage
pT.setDimInfo(tbl, ..., append = TRUE)
Arguments
tbl |
The |
... |
The dimensional information as named arguments. All names except tbl and append are allowed. |
append |
Whether to append to existing dimensional data (append=TRUE) or completely replace existing information (append=FALSE) |
Examples
# For examples, please see the \code{mT.setDimInfo} function.