Uses an Internet connection to download ELS data. Data come from nces.ed.gov zip files. This function works for 2002 data.
downloadELS(root, years = c(2002), cache = FALSE, verbose = TRUE)
a character string indicating the directory where the ELS data should be stored. Files are placed in a subdirectory named ELS/[year].
an integer vector of the assessment years to download. Valid year is 2002 only.
a logical value set to process and cache the text (.txt) version of files.
This takes a very long time but saves time for future uses of
the data. Default value is FALSE
.
a logical value to either print or suppress status message output.
The default value is TRUE
.
Tom Fink
readELS
if (FALSE) {
# root argument will vary by operating system conventions
downloadELS(years=2002, root = "~/")
# cache=TRUE will download then process the datafiles
downloadELS(years=2002, root = "~/", cache = TRUE)
# set verbose=FALSE for silent output
# if year not specified, download all years
downloadELS(root="~/", verbose = FALSE)
}
Run the code above in your browser using DataLab