Like rapply but recurses over nested lists and retain attributes and names.
rapply
attributes
names
recurse(l, func, ...)
l
list over which we would like to recurse
list
func
function to apply to the list
function
...
arguments for the func