Skip to content

Instantly share code, notes, and snippets.

@yaojenkuo
Created February 14, 2018 07:48
Show Gist options
  • Select an option

  • Save yaojenkuo/d6335c3d06c5a00b44decfe080906c39 to your computer and use it in GitHub Desktop.

Select an option

Save yaojenkuo/d6335c3d06c5a00b44decfe080906c39 to your computer and use it in GitHub Desktop.
# get_hospital_data()
get_hospital_data <- function(dest_file, ex_dir) {
specdata_url <- "https://storage.googleapis.com/jhu_rprg/hospital_data.zip"
download.file(specdata_url, destfile = dest_file)
unzip(dest_file, exdir = ex_dir)
}
get_hospital_data("~/Downloads/hospital_data.zip", "~/hospital_data")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment