Description Usage Arguments Value Note Examples
The function droplevels
is used to drop unused levels from a
factor
or, more commonly, from factors in a data frame.
1 2 3 4 5 | ## S4 method for signature 'Ranges'
droplevels(x)
## S4 method for signature 'SummarizedExperiment'
droplevels(x)
|
x |
Object. |
Modified object.
Updated 2019-08-19.
1 2 3 4 5 6 7 8 9 | data(RangedSummarizedExperiment, package = "acidtest")
## Ranges ====
rse <- RangedSummarizedExperiment
object <- SummarizedExperiment::rowRanges(rse)
droplevels(object)
## SummarizedExperiment ====
object <- RangedSummarizedExperiment
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.