readHSB_Senior | R Documentation |
Opens a connection to a High School & Beyond 1980–1986 Senior cohort data file and
returns an edsurvey.data.frame
with
information about the file and data.
readHSB_Senior(
HSR8086_PRI_FilePath,
HSR8086_SASSyntax_Path,
forceReread = FALSE,
verbose = TRUE
)
HSR8086_PRI_FilePath |
a character value to the main study-derived
analytical data file (HSR8086_REV.PRI).
Located within the |
HSR8086_SASSyntax_Path |
a character value to the SAS syntax file for
parsing the |
forceReread |
a logical value to force rereading of all processed data.
The default value of |
verbose |
a logical value that will determine if you want verbose output
while the |
Reads in the specified HSR8086_SASSyntax_Path
file to parse
the HSR8086_PRI_FilePath
file.
A cached data file and metadata file will be saved in the same
directory and filename as the HSR8086_PRI_FilePath
file,
having new file extensions of .txt and .meta, respectively.
Please note the original source repcode
variable has been split
into two variables named repcode_str
for the stratum value
and repcode_psu
for the primary sampling unit (PSU) value in the resulting
cache data.
an edsurvey.data.frame
for the HS&B Senior 1980–1986 longitudinal dataset
Tom Fink
readECLS_K2011
, readNAEP
, and getData
## Not run:
wrkFld <- "~/HSB/SENIOR"
dataPath <- file.path(wrkFld, "REVISED_ASCII", "HSR8086_REV.PRI")
sasPath <- file.path(wrkFld, "SAS_EXTRACT_LOGIC", "HSBsr_READ_HSR8086.SAS")
# with verbose output as default
hsbSR <- readHSB_Senior(dataPath, sasPath)
# silent output
hsbSR <- readHSB_Senior(dataPath, sasPath, verbose = FALSE)
# force cache update
hsbSR <- readHSB_Senior(dataPath, sasPath, forceReread = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.