R/NCI60.R

Defines functions etl_NCI60

Documented in etl_NCI60

#' Load the NCI60 data from GitHub
#' @export
#' @examples 
#' 
#' \dontrun{
#' NCI60 <- etl_NCI60()
#' }

etl_NCI60 <- function() {
  NCI60 <- data.frame()
  dir <- tempdir()
  lcl <- file.path(dir, "NCI60.rda")
  downloader::download(
    "https://github.com/mdsr-book/mdsr/blob/master/data-raw/NCI60.rda?raw=true", 
    destfile = lcl
  )
  load(lcl)
  return(tibble::as_tibble(NCI60))
}

Try the mdsr package in your browser

Any scripts or data that you put into this service are public.

mdsr documentation built on Jan. 6, 2023, 5:12 p.m.