readHIVData | R Documentation |
Reads in AHRI data from standard HIV .dta file
readHIVData(
inFile = NULL,
dropTasP = TRUE,
addVars = " ",
drop15Less = TRUE,
write_rda = TRUE
)
inFile |
File path to .dta, default is set by |
dropTasP |
Default is to drop TasP surveillance areas from the data. |
addVars |
A regular expression string representing the variables to be added. |
drop15Less |
Default is to drop all observations with Age < 15 years. Only participants >=15 years eligible for HIV testing. |
write_rda |
Default is to write the .Rda file. |
data.frame
# Writes .Rda to file
readHIVData(write_rda = TRUE)
# Drop TasP areas, dont write to file
readHIVData(dropTasP = FALSE, write_rda = TRUE)
# Saves to global environment
hdat <- readHIVData(write_rda=FALSE)
# Add variables
hdat <- readHIVData(addVars="HIVRefused|WhereLastTested", write_rda=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.