Learn R Programming

EdSurvey (version 2.7.0)

readBB_2012: Connect to B&B 2008--2012 Data

Description

Opens a connection to a Baccalaureate & Beyond 2008--2012 data file and returns an edsurvey.data.frame with information about the file and data.

Usage

readBB_2012(
  path,
  csvFilename = "b12derived_datafile.csv",
  formatFilename = "b12derived_format.txt",
  metadataFilename = "b12derived_metadata.txt"
)

Arguments

path

a character value to the root directory path containing the csvFilename, formatFilename, and metadataFilename data files.

csvFilename

a character value of the derived data file (.csv) containing the raw B&B 2008--2012 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 B&B 2008--2012 longitudinal dataset.

Details

Reads in the specified csvFilename file for the B&B 2008--2012 longitudinal survey to an edsurvey.data.frame.

See Also

readECLS_K2011, readNAEP, and getData

Examples

Run this code
# NOT RUN {
# using default filenames
bb <- readBB_2012(path = "~/BB/2012")
dim(bb)

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

Run the code above in your browser using DataLab