R/listn.r

Defines functions listn

Documented in listn

listn <- function(...) {
  input <- sapply(match.call(), deparse)[-1]
  if (is.null(names(input))) {
    names(input) <- rep("", times=length(input))
  }
  names(input) <- ifelse(names(input)=="", input, names(input))
  listWithName <- list(...)
  names(listWithName) <- names(input) 
  return(listWithName)
}

Try the erer package in your browser

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

erer documentation built on April 18, 2022, 5:06 p.m.