Skip to contents

Download the current Hospital Data Sets.

Usage

current_hosp_data(path = utils::choose.dir())

Arguments

path

The location to download and unzip the files

Value

Downloads the current hospital data sets.

Details

This function will download the current and the official hospital data sets from the CMS.gov website.

The function makes use of a temporary directory and file to save and unzip the data. This will grab the current Hospital Data Files, unzip them and return a list of tibbles with each tibble named after the data file.

The function returns a list object with all of the current hospital data as a tibble. It does not save the data anywhere so if you want to save it you will have to do that manually.

This also means that you would have to store the data as a variable in order to access the data later on. It does have a given attributes and a class so that it can be piped into other functions.

Author

Steven P. Sanderson II, MPH

Examples

if (FALSE) {
  current_hosp_data()
}