Is there a way to get the list index name in my lapply() function?
n = names(mylist) lapply(mylist, function(list.elem) { cat(\"What is the name of this list
I've had the same problem a lot of times... I've started using another way... Instead of using lapply, I've started using mapply
lapply
mapply
n = names(mylist) mapply(function(list.elem, names) { }, list.elem = mylist, names = n)