Find all collection (named lists) slots in an S4 object

.Collections(object, exclude = character(length = 0L), ...)

Arguments

object

An S4 object

exclude

A character vector of slot names to exclude

...

Arguments passed to IsNamedList

Value

A character vector of names of collection slots

Examples

.Collections(pbmc_small)
#> [1] "assays"     "graphs"     "reductions" "commands"