read_hiv_pop.Rd
Get HIV population data separated by year, sex and age. Final age is open ended age group 80+.
read_hiv_pop(pjnz_path, long_format = FALSE)
pjnz_path | Path to PJNZ file to extract the data from. |
---|---|
long_format | If TRUE then data is returned in long format. |
3D array of HIV population data separated by year, sex and age.
pjnz_path <- system.file("testdata", "Botswana2017.PJNZ", package = "specio") hiv_population <- read_hiv_pop(pjnz_path) hiv_pop_long <- read_hiv_pop(pjnz_path, TRUE)