Learn R Programming

EdSurvey (version 4.0.7)

readBTLS: Connect to BTLS Data

Description

Opens a connection to the Beginning Teacher Longitudinal Study (BTLS) waves 1 through 5 data file and returns an edsurvey.data.frame with information about the file and data.

Usage

readBTLS(dat_FilePath, spss_FilePath, verbose = TRUE)

Value

an edsurvey.data.frame for the BTLS waves 1 to 5 longitudinal dataset.

Arguments

dat_FilePath

a character value to the full path of the BTLS fixed-width (.dat) data file

spss_FilePath

a character value to the full path of the SPSS syntax file to process the dat_FilePath

verbose

a logical value that will determine if you want verbose output while the readBTLS function is running to indicate processing progress (the default value is TRUE)

Author

Tom Fink

Details

Reads the spss_FilePath file to parse the dat_FilePath to an edsurvey.data.frame. There is no cached data because the dat_FilePath format already is in fixed-width format.

See Also

readECLS_K2011, readNAEP, and getData

Examples

Run this code
if (FALSE) {

fld <- "~/EdSurveyData/BTLS"
datPath <- file.path(fld, "ASCII Data File", "BTLS2011_12.dat")
spsPath <- file.path(fld, "Input Syntax for Stata and SPSS", "BTLS2011_12.sps")

#read in the data to an edsurvey.data.frame
btls <- readBTLS(datPath, spsPath, verbose = TRUE)

dim(btls)
}

Run the code above in your browser using DataLab