downloadHSLS: Download and Unzip HSLS Files

View source: R/downloadHSLS.R

downloadHSLSR Documentation

Download and Unzip HSLS Files

Description

Uses an Internet connection to download HSLS data. Data come from nces.ed.gov zip files. This function works for 2009 data.

Usage

downloadHSLS(root, years = c(2009), cache = FALSE, verbose = TRUE)

Arguments

root

a character string indicating the directory where the HSLS data should be stored. Files are placed in a subdirectory named HSLS/[year].

years

an integer vector of the assessment years to download. Valid year is 2009 only.

cache

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.

verbose

a logical value to either print or suppress status message output. The default value is TRUE.

Author(s)

Tom Fink

See Also

readHSLS

Examples

## Not run: 
# root argument will vary by operating system conventions
downloadHSLS(root = "~/", years=2009)

# set verbose=FALSE for silent output
# if year not specified, download all years
downloadHSLS(root="~/", verbose = FALSE)

## End(Not run)

EdSurvey documentation built on June 27, 2024, 5:10 p.m.