get.tfr.trajectories: Accessing TFR Trajectories

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/get_outputs.R

Description

Function for accessing TFR trajectories.

Usage

1
get.tfr.trajectories(tfr.pred, country)

Arguments

tfr.pred

Object of class bayesTFR.prediction.

country

Name or numerical code of a country.

Details

The function loads TFR trajectories for the given country from disk, offsets it if needed (see tfr.median.shift) and returns it as a matrix.

Value

Array of size 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.

Author(s)

Hana Sevcikova

See Also

bayesTFR.prediction, get.tfr.prediction, tfr.trajectories.table, tfr.median.shift

Examples

1
2
3
sim.dir <- file.path(find.package("bayesTFR"), "ex-data", "bayesTFR.output") 
pred <- get.tfr.prediction(sim.dir=sim.dir)
get.tfr.trajectories(pred, "Germany")

jasonacollins/bayesTFR1 documentation built on May 23, 2019, 7:34 a.m.