# NOT RUN {
getGroups(x = gtGeoms$polygon)
# for raster objects, groups are pixels with the same value and their
# attributes are in the raster attribute table (RAT)
getGroups(x = gtRasters$categorical)
# }
Run the code above in your browser using DataLab