dp.inputs.child.art | R Documentation |
Get input numbers or percentages of children on antiretroviral therapy (ART) or cotrimoxazole (CTX) prophylaxis entered into Spectrum by year and age in long or wide format
dp.inputs.child.art(
dp.raw,
direction = "wide",
first.year = NULL,
final.year = NULL
)
dp.raw |
DemProj module data in raw format, as returned by
|
direction |
Request "wide" (default) or "long" format data. |
first.year |
First year of the projection. If |
final.year |
Final year of the projection. If |
A data frame.
Child treatment data can be entered into Spectrum as numbers or percentages
for ages 0-14. Further, ART numbers can be entered by five-year age group
(0-4, 5-9, or 10-14) instead. These units and age resolutions can vary from
year to year. When direction="wide"
, the return value will include
rows for numbers and for percentages, with percentages missing in years
where numbers were entered or vice-versa. When direction="long"
,
unused combinations of age group, treatment, and unit are removed before
returning.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.