GetData {VirtualPop}R Documentation

Reads Data from the HMD and HFD into R

Description

Reads data from the HMD and HFD into R. The function uses the readHMDweb() and the readHFDweb() functions of the HMDHFDplus package.

Usage

GetData(country, user, pw_HMD, pw_HFD)

Arguments

country

Code of the selected country. The code must be one of the country codes of HMD and HFD.

user

email address of the user, used at registration with the HMD and HFD. It is assumed that the same email address is used for both HMD and HFD.

pw_HMD

Password to access HMD, provided at registration.

pw_HFD

Password to access HFD, provided at registration

Value

data_raw

A list object with four elements:

country

Country

LTf

Life table for female population for all years available in the HMD

LTm

Life table for male population for all years available in the HMD

fert_rates

Conditional fertility rates for all years available in the HFD

Examples



## Not run: 
data_raw <- GetData(country="USA",user,pw_HMD,pw_HFD)

## End(Not run)


[Package VirtualPop version 2.0.2 Index]