read_hiv_pop: Extract people living with HIV (PLHIV) from PJNZ file

Description Usage Arguments Value Examples

View source: R/extract_data.R

Description

Get HIV population data separated by year, sex and age. Final age is open ended age group 80+.

Usage

1
read_hiv_pop(pjnz_path, long_format = FALSE)

Arguments

pjnz_path

Path to PJNZ file to extract the data from.

long_format

If TRUE then data is returned in long format.

Value

3D array of HIV population data separated by year, sex and age.

Examples

1
2
3
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)

mrc-ide/specio documentation built on April 15, 2021, 8:37 a.m.