cps_download_data: Download CPS microdata

View source: R/cps_download.R

cps_download_dataR Documentation

Download CPS microdata

Description

Download CPS microdata

Usage

cps_download_data(
  path = "cps_data",
  years = seq(1994, 2018, 2),
  overwrite = FALSE
)

Arguments

path

A file path (relative or absolute) where the downloads should go.

years

Which years of data to download. Defaults to all even-numbered years from 1994 to 2018.

overwrite

Logical, whether to write over existing files or not. Defaults to FALSE.

Details

  • File names will be written in the style "cps_nov2018.zip", with the appropriate years.

  • The Voting and Registration Supplement is only conducted in even-numbered years (since 1964), so any entry in years outside of this will be skipped.

  • Currently the package only supports downloads from 1994 onwards, so any entry in years before 1994 will be skipped.

Examples

## Not run: 
cps_download_data(path = "cps_docs", years = 2016, overwrite = TRUE)

## End(Not run)


Reed-EVIC/cps_vote documentation built on Nov. 19, 2022, 3:51 p.m.