combine.demogdata: Combine two demogdata objects into one demogdata object
Description
Function to combine demogdata objects containing
different years but the same age structure into one demogdata
object. The standard use for this function will be combining
historical data with forecasts. The objects must be of the same type.
Usage
combine.demogdata(obj1, obj2)
Arguments
obj1
First demogdata object (e.g., historical data).
obj2
Second demogdata object (e.g., forecasts).
Value
Object of class demogdata with the following components:
yearVector of years
ageVector of ages
rateMatrix of rates with with one age group per row and one column per year.
popMatrix of populations in same form as rate and containing population numbers. This is only
produced when both objects contain a pop component.
typeType of object: mortality, fertility or migration.