Opens a connection to a BPS 1990 to 1994 cohort data file and
returns an edsurvey.data.frame
with
information about the file and data.
readBPS_1994(
b94DAT_Filepath,
masterTxtFilepath,
forceReread = FALSE,
verbose = TRUE
)
a character value of the file path to the student BPS:90/94 (.dat) file
a character value of the file path to the master.txt
file contained within the electronic codebook directory
a logical value to force rereading of all processed data.
The default value of FALSE
will speed up the read function by using existing read-in data already processed.
a logical value that will determine if you want verbose output while the readHSB_Sophomore
function is running to indicate processing progress.
The default value is TRUE
.
An edsurvey.data.frame
for the BPS longitudinal dataset.
Reads in the student BPS 1990 to 1994 cohort data file to an edsurvey.data.frame
.
readBB_2001
, readNAEP
, and getData
# NOT RUN {
setwd("~/BPS1994/")
datFP <- file.path(getwd(), "BPS94", "STUDENT.DAT")
mstFP <- file.path(getwd(), "ECBW", "BP4", "MASTER.TXT")
#with verbose output as default
bps94 <- readBPS_1994(datFP, mstFP)
#silent output
bps94 <- readBPS_1994(datFP, mstFP, verbose=FALSE)
#force data cache update
bps94 <- readBPS_1994(datFP, mstFP, forceReread = TRUE)
# }
Run the code above in your browser using DataLab