Learn R Programming

SeuratObject (version 5.0.2)

intersect.LogMap: Find Common Logical Map Values

Description

Identify values in a logical map that are common to every observation

Usage

# S3 method for LogMap
intersect(x, y = missing_arg(), ...)

Value

The values of x that are present in every observation

Arguments

x

A LogMap object

y

Ignored

...

Ignored

See Also

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

Examples

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

# Identify values that are present in every observation
intersect(map)

Run the code above in your browser using DataLab