makeContractGridDimname | R Documentation |
contractGrid()
The function makeContractGridDimname
generates a short, human-readable
dimension label for the entries along the axes of a contractGrid()
.
The default is to use the value
unchanged as the row-/columnname, but
for some parameter values (like a InsuranceTarif or mortalityTable)
a custom method of this function is needed to create the (short) human-readable
representation for the axes in the grid.
The function makeContractGridDimnames
generate proper
dimnames for all entries of the axes of a contractGrid()
by calling
makeContractGridDimname
on each of the axes' values
makeContractGridDimname(value) makeContractGridDimnames(axes)
value |
the value along the axis, for which a name should be generated |
axes |
the axes with all names, for which a name should be generated |
makeContractGridDimname()
: Create a short, human-readable dimensional name for an object (default S3 method)
makeContractGridDimnames()
: Generate proper dimnames for all entries of the axes of a contractGrid()
library(MortalityTables) mortalityTables.load("Austria_Census") makeContractGridDimname(mort.AT.census.2011.unisex) makeContractGridDimnames(axes = list( age = seq(30,60,10), mortalityTable = c(mort.AT.census.2011.unisex, mort.AT.census.2011.male, mort.AT.census.2011.female)) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.