Skip to contents

Retrieve zipfiles with IPEDS survey components from the NCES datacenter, then extract the most recent datafile. Most often called via ipeds_load_series().

Usage

ipeds_download(
  data_files,
  data_dir = "ipeds",
  force = FALSE,
  sleep_interval = 1
)

Arguments

data_files

character vector with basename (no suffix) of survey datafiles to retrieve. For example, "HD2022" for the 2022 institutional characteristics survey.

data_dir

directory to download and extract files to. Created if it doesn't exist.

force

if FALSE (default), files are not redownloaded or extracted if they already exist in data_dir.

sleep_interval

seconds to wait between download requests

Value

a character vector of paths to extracted files

See also

For a quick (but possibly outdated) reference of possible data files, see ipeds_surveys; ipeds_surveys$data_file gives the filenames to supply to data_files.