I would like to apply my function to only elements that are deeper in the list structure.
For example, I would like to apply a certain function to list elements of second order only. Is this feasible with apply()?
> str(l)
List of 3
$ :List of 2
..$ : num 5
..$ : num 10
$ :List of 2
..$ : num 15
..$ : num 20
$ :List of 2
..$ : num 25
..$ : num 30