Helper Functions for Sub-Set Operations on Recursive Objects
Source:R/helper_recursive.R
helper_recursive.Rd'squarebrackets' provides some helper functions for sub-set operations on recursive objects
(lists and data.frames). dropl(x) returns x[[1L]] if length(x) == 1, and returns x otherwise.
This can be used for the *_x and *_wo methods on recursive objects,
where one would like to extract the contents of the singular selection.