View source: R/readECLS_K2011.R
readECLS_K2011 | R Documentation |
Opens a connection to an ECLS–K 2011 data file and
returns an edsurvey.data.frame
with
information about the file and data.
readECLS_K2011(
path = getwd(),
filename = "childK5p.dat",
layoutFilename = "ECLSK2011_K5PUF.sps",
forceReread = FALSE,
verbose = TRUE
)
path |
a character value to the full directory path(s) to the ECLS–K 2010–11 extracted fixed-with-format (.dat) set of data files |
filename |
a character value of the name of the fixed-width (.dat) data file in the specified |
layoutFilename |
a character value of the filename of either the ASCII (.txt) layout file of the |
forceReread |
a logical value to force rereading of all processed data.
The default value of |
verbose |
a logical value that will determine if you want verbose output while the |
Reads in the unzipped files downloaded from the ECLS–K 2010–11 longitudinal dataset.
an edsurvey.data.frame
for the ECLS–K 2010–11 longitudinal dataset
Tom Fink
readECLS_K1998
, readNAEP
, getData
, and downloadECLS_K
## Not run:
# read-in student file with defaults
eclsk_df <- readECLS_K2011(path="~/ECLS_K/2011") #using defaults
d <- getData(data=eclsk_df, varnames=c("childid", "c1hgt1", "c1wgt1"))
summary(d)
## End(Not run)
## Not run:
# read-in with parameters specified
eclsk_df <- readECLS_K2011(path = "~/ECLS_K/2011",
filename = "childK5p.dat",
layoutFilename = "ECLSK2011_K5PUF.sps",
forceReread = FALSE,
verbose = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.