droplevels.LogMap | R Documentation |
Remove any unused values from a logical map
## S3 method for class 'LogMap'
droplevels(x, ...)
x |
A |
... |
Ignored |
x
with values not present in any
observation removed
Logical map objects, validity, and interaction methods:
LogMap
,
LogMap-validity
,
as.matrix.LogMap()
,
intersect.LogMap()
,
labels.LogMap()
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[[]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.