droplevels: Drop unused levels from factors

Description Usage Arguments Value Note Examples

Description

The function droplevels is used to drop unused levels from a factor or, more commonly, from factors in a data frame.

Usage

1
2
3
4
5
## S4 method for signature 'Ranges'
droplevels(x)

## S4 method for signature 'SummarizedExperiment'
droplevels(x)

Arguments

x

Object.

Value

Modified object.

Note

Updated 2019-08-19.

Examples

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

acidgenomics/transformer documentation built on Jan. 9, 2020, 11:34 a.m.