readHSB_Sophomore | R Documentation |
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.
readHSB_Sophomore(
HSO8092_PRI_FilePath,
HSO8092_SASSyntax_Path,
forceReread = FALSE,
verbose = TRUE
)
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 |
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.
an edsurvey.data.frame
for the HS&B Sophomore 1980–1992 longitudinal dataset
Tom Fink
readECLS_K2011
, readNAEP
, and getData
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.