current_hosp_data: Download Current Hospital Data Files.

View source: R/dl-cur-hosp-data.R

current_hosp_dataR Documentation

Download Current Hospital Data Files.

Description

Download the current Hospital Data Sets.

Usage

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

Arguments

path

The location to download and unzip the files

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.

Value

Downloads the current hospital data sets.

Author(s)

Steven P. Sanderson II, MPH

See Also

https://data.cms.gov/provider-data/topics/hospitals/

Other Hospital Data: current_asc_data(), current_asc_oas_cahps_data(), current_comp_death_data(), current_hai_data(), current_hcahps_data(), current_hvbp_data(), current_ipfqr_data(), current_maternal_data(), current_medicare_hospital_spending_data(), current_oqr_oas_cahps_data(), current_outpatient_imaging_efficiency_data(), current_payments_data(), current_pch_hai_hospital_data(), current_pch_hcahps_data(), current_pch_oncology_measures_hospital_data(), current_pch_outcomes_data(), current_timely_and_effective_care_data(), current_unplanned_hospital_visits_data, current_va_data()

Examples

## Not run: 
  current_hosp_data()

## End(Not run)


healthyR.data documentation built on July 4, 2024, 5:07 p.m.