droplevels.LogMap: Drop Unused Logical Map Values

View source: R/logmap.R

droplevels.LogMapR Documentation

Drop Unused Logical Map Values

Description

Remove any unused values from a logical map

Usage

## S3 method for class 'LogMap'
droplevels(x, ...)

Arguments

x

A LogMap object

...

Ignored

Value

x with values not present in any observation removed

See Also

Logical map objects, validity, and interaction methods: LogMap, LogMap-validity, as.matrix.LogMap(), intersect.LogMap(), labels.LogMap()

Examples

map <- LogMap(letters[1:10])
map[['obs']] <- c(1, 3, 7)
map[['entry']] <- c(2, 7, 10)

# Remove unused values
map <- droplevels(map)
map
map[[]]


SeuratObject documentation built on May 29, 2024, 12:31 p.m.