The following works ok:
pmap_dbl(iris, ~ ..1 + ..2 + ..3 + ..4)
The documentation for
.l provides for
A list of lists. ... List names will be used if present.. This suggests you should be able to work with the list names (i.e. column names). However:
pmap_dbl(iris, ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width) Error in .f(Sepal.Length = .l[[c(1L, i)]], Sepal.Width = .l[[c(2L, i)]], : object 'Sepal.Length' not found
How are list names harnessed in practice?