readHSB_Sophomore {EdSurvey} | R Documentation |
Connect to HS&B Study Sophomore Data
Description
Opens a connection to a High School & Beyond 1980–1992 Sophomore cohort data file and
returns an edsurvey.data.frame
with
information about the file and data.
Usage
readHSB_Sophomore(
HSO8092_PRI_FilePath,
HSO8092_SASSyntax_Path,
forceReread = FALSE,
verbose = TRUE
)
Arguments
HSO8092_PRI_FilePath |
a character value to the main study-derived
analytical data file (HSO8092_REV.PRI).
Located within the |
HSO8092_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 |
Details
Reads in the specified HSO8092_SASSyntax_Path
file to parse
the HSO8092_PRI_FilePath
file.
A cached data file and metadata file will be saved in the same
directory and filename as the HSO8092_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.
Value
an edsurvey.data.frame
for the HS&B Sophomore 1980–1992 longitudinal dataset
Author(s)
Tom Fink
See Also
readECLS_K2011
, readNAEP
, and getData
Examples
## Not run:
wrkFld <- "~/HSB/SOPHOMORE"
dataPath <- file.path(wrkFld, "REVISED_ASCII", "HSO8092_REV.PRI")
sasPath <- file.path(wrkFld, "SAS_EXTRACT_LOGIC", "HSBso_READ_HSO8092.SAS")
# with verbose output as default
hsbSO <- readHSB_Sophomore(dataPath, sasPath)
# silent output
hsbSO <- readHSB_Sophomore(dataPath, sasPath, verbose = FALSE)
# force cache update
hsbSO <- readHSB_Sophomore(dataPath, sasPath, forceReread = TRUE)
## End(Not run)