Learn R Programming

EdSurvey (version 2.4.0)

readBPS_2001: Beginning Postsecondary Students (BPS:96/01) Data

Description

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

Usage

readBPS_2001(
  path = getwd(),
  csvFilename = "bps01derived_datafile.csv",
  formatFilename = "bps01derived_format.txt",
  metadataFilename = "bps01derived_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:96/01 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 derived data files from the BPS longitudinal database of the BPS 1996 to 2001 cohort.

See Also

readBB_2012, readNAEP, and getData

Examples

Run this code
# NOT RUN {
# using default filenames
bps01 <- readBPS_2001(path = "C:/BPS/2001")
dim(bps01)

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

Run the code above in your browser using DataLab