R/extras.R

Defines functions as_list_unnamed_default

# FIXME: functions to import from extras
as_list_unnamed_default <- function(x, ...) {
  x <- as.list(x)
  names <- names(x)
  attributes(x) <- NULL
  if (!is.null(names)) {
    names(x) <- names
  }
  x
}

Try the nlist package in your browser

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

nlist documentation built on June 8, 2025, 9:41 p.m.