powered by
Remove any unused values from a logical map
# S3 method for LogMap droplevels(x, ...)
x with values not present in any observation removed
x
A LogMap object
LogMap
Ignored
Logical map objects, validity, and interaction methods: LogMap, LogMap-validity, as.matrix.LogMap(), intersect.LogMap(), labels.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[[]]
Run the code above in your browser using DataLab