Drop unused levels from factors

droplevels(x, ...)

# S4 method for SummarizedExperiment
droplevels(x)

Arguments

x

Object.

...

Additional arguments.

Value

Modified object.

Note

Updated 2021-06-04.

Examples

data(RangedSummarizedExperiment, package = "AcidTest") ## SummarizedExperiment ==== object <- RangedSummarizedExperiment droplevels(object)
#> class: RangedSummarizedExperiment #> dim: 500 12 #> metadata(3): version date interestingGroups #> assays(1): counts #> rownames(500): gene001 gene002 ... gene499 gene500 #> rowData names(9): broadClass description ... geneName seqCoordSystem #> colnames(12): sample01 sample02 ... sample11 sample12 #> colData names(1): condition