Extracting objects of specific class from a possible nested list

Extracting objects of specific class from a possible nested list

aux_extractObjects(mylist, myclass = "ggplot")

Arguments

mylist

List object

myclass

Character string defining the class of objects to be returned in a non-nested list

Value

List with objects of defined class