Learn R Programming

EdSurvey (version 2.4.0)

readBPS_2014: Beginning Postsecondary Students (BPS:12/14) Data

Description

Opens a connection to a BPS 2012 to 2014 cohort data file and returns an edsurvey.data.frame with information about the file and data.

Usage

readBPS_2014(
  path = getwd(),
  csvFilename = "bps14derived_datafile.csv",
  formatFilename = "bps14derived_format.txt",
  metadataFilename = "bps14derived_metadata.txt"
)

Arguments

path

a character value to the full directory path to the BPS extracted data files

csvFilename

a character value of the derived data file (.csv) containing the raw BPS:12/14 data

formatFilename

a character value of the format file (.txt) that describes the layout of the csvFilename

metadataFilename

a character value of the metadata file (.txt) that describes additional metadata of the csvFilename

Value

An edsurvey.data.frame for the BPS longitudinal dataset.

Details

Reads in the unzipped files downloaded from the BPS 2012 to 2014 cohort longitudinal database.

See Also

readBB_2012, readNAEP, and getData

Examples

Run this code
# NOT RUN {
# using default filenames
bps14 <- readBPS_2014(path = "C:/BPS/2012")
dim(bps14)

# parameters specified without default filenames
bps14 <- readBPS_2014(path = getwd(),
                  csvFilename = "renamedData.csv",
                  formatFilename = "renamedFormat.txt",
                  metadataFilename = "renamedMeta.txt")
dim(bps14)
# }

Run the code above in your browser using DataLab