get.e0.trajectories | R Documentation |
Function for accessing trajectories of the life expectancy.
get.e0.trajectories(e0.pred, country)
e0.pred |
Object of class |
country |
Name or numerical code of a country. It can also be given as ISO-2 or ISO-3 characters. |
The function loads trajectories of life expectancy for the given country from disk and returns it as a matrix.
Array of size the number of projection periods (including the present year) times the number of trajectories. The row names correspond to the mid-years of the prediction periods.
Hana Sevcikova
bayesLife.prediction
, get.e0.prediction
, e0.trajectories.table
sim.dir <- file.path(find.package("bayesLife"), "ex-data", "bayesLife.output")
pred <- get.e0.prediction(sim.dir=sim.dir)
get.e0.trajectories(pred, "Germany")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.