extract_incidence_prevalence: Extract incidence and prevalence for single region.

Description Usage Arguments Value

View source: R/read_epp_results.R

Description

Gets the incidence, prevalence and population data (if available) for a single region, e.g. National, Urban or Rural.

Usage

1
extract_incidence_prevalence(break_index, spt_data, no_of_years)

Arguments

break_index

The index of the line break in the spt_data where data about this region ends.

spt_data

The complete spt data read from a file.

no_of_years

The number of years in the data set, equivalent to the number of rows we return.

Value

A data frame, one row for each year showing the HIV incidence, prevalence and population (if available).


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