R/listDataSets.R

#' List available data sets
#'
#' @return name of one of the data sets of the package, see
#'   \link{listDataSets}
#' @export
#'
#' @examples
#' listDataSets()
#' 
listDataSets <- function() {
    path <- system.file("extdata", package="acnr")
    files <- list.files(path)
    gsub(".rds$", "", files)
}

Try the acnr package in your browser

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

acnr documentation built on May 2, 2019, 9:25 a.m.