readEpisodes: Read in the standard Surveillance .dta dataset.

View source: R/getEpisodes.R

readEpisodesR Documentation

Read in the standard Surveillance .dta dataset.

Description

Reads in the Surveillance Episodes dataset. Note, this function drops participants with missing values for Sex (there are a handful of these).

Usage

readEpisodes(inFile = NULL, dropTasP = TRUE, addVars = " ", write_rda = TRUE)

Arguments

inFile

File path to the .dta dataset, default is set to setFiles.

dropTasP

default is to drop TasP areas.

addVars

A regular expression string representing the variables to be added.

write_rda

Default is to write the .Rda file.

Value

data.frame

Examples


readEpisodes(addVars="CurrentlyEmployed|UnEmployment")
readEpisodes(dropTasP=FALSE, addVars="Employ")


vando026/ahri documentation built on Aug. 10, 2024, 3:20 p.m.