R/dict2.R

dict2 <- function(...) {
  namedList <- list(...)
  l <- lapply(X = namedList, FUN = function(x) { x[2]; } )
  ln<- lapply(X = namedList, FUN = function(x) { x[1]; } )
  list <- setNames( object = l, nm = ln )
}
andreamelloncelli/dict documentation built on May 12, 2019, 2:42 a.m.