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

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

Arguments

x

A LogMap object

y

Ignored

...

Ignored

Value

The values of x that are present in every observation

See also

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

Examples

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)
#> [1] "g"