R/datasets.R

Defines functions datasets

Documented in datasets

#' Data Sets
#'
#' Shows the datasets of a package.
#'
#' Returns a character vector containing the names of the datasets in the
#' package given as the argument.
#'
#' @param pkg the name of a package.
#' @export
#' @author Marc Choisy.
datasets <- function(pkg) {
  data(package = pkg)$results[, "Item"]
}
choisy/mcutils documentation built on May 29, 2019, noon