R/getList.R

Defines functions getList

Documented in getList

#' getList
#'
#' Creates a list with element names replaced by \code{link{getText}}.
#'
#' @param ... named elements of a list
#'
#' @return renamed list
#' @export
#'
#' @examples
#' getList(BOSTON=1, MTCARS=2)
getList <- function(...) {
  args <- list(...)
  names(args) <- getText(names(args))
  args
}

Try the mmstat4 package in your browser

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

mmstat4 documentation built on May 29, 2024, 11:15 a.m.