Last chance! 50% off unlimited learning
Sale ends in
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(...)
comma-separated arguments
a <- 1
b <- 2
c <- 3
str(namedList(a, b, d = c))
Run the code above in your browser using DataLab