Calls base::droplevels() on the data.frame in spc@data.

# S4 method for hyperSpec
droplevels(x, ...)

Arguments

x

hyperSpec object

...

handed to base::droplevels.data.frame()

Value

hyperSpec object with unused levels of all factors in @data dropped.

Examples

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