Calls base::droplevels()
on the data.frame in spc@data
.
# S4 method for hyperSpec
droplevels(x, ...)
hyperSpec object
handed to base::droplevels.data.frame()
hyperSpec object with unused levels of all factors in @data
dropped.
faux_cell[1:3]$region
#> [1] matrix matrix matrix
#> Levels: cell matrix nucleus
droplevels(faux_cell[1:3])$region
#> [1] matrix matrix matrix
#> Levels: matrix