Apply a function to a nested list.

nestapply(obj, FUN, ...)

Arguments

obj
Nested object to act upon.
FUN
Function to apply to the nested object.
...
Other arguments to pass (if variable is greater than length one then the first value will be recylced).