namedList function

Self-naming list function

Self-naming list function

this function takes a list of arguments and combines them into a list; any unnamed arguments are automatically named to match their symbols. The tibble::lst() function offers similarly functionality.

namedList(...)

Arguments

  • ...: comma-separated arguments

Examples

a <- 1 b <- 2 c <- 3 str(namedList(a, b, d = c))
  • Maintainer: Ben Bolker
  • License: GPL (>= 2)
  • Last published: 2025-03-26