cls is a replacement for the class function which also works for the collection objects. It falls back to the ordinary class function for other objects.

cls(x)

Arguments

x

a collection object

Examples

d <- dict()
cls(d)
#> [1] "dict"