labels.LogMap | R Documentation |
Identify the observations that contain a specific value in a logical map
## S3 method for class 'LogMap'
labels(
object,
values,
select = c("first", "last", "common", "all"),
simplify = TRUE,
...
)
object |
A |
values |
A vector of values to find observations for |
select |
Observation selection method; choose from:
|
simplify |
Simplify the resulting list to a vector |
... |
Ignored |
labels
: A list, or vector if simplify
is TRUE
,
of all values and the observations they're found in, according
to the value of select
Logical map objects, validity, and interaction methods:
LogMap
,
LogMap-validity
,
as.matrix.LogMap()
,
droplevels.LogMap()
,
intersect.LogMap()
map <- LogMap(letters[1:10])
map[['obs']] <- c(1, 3, 7)
map[['entry']] <- c(2, 7, 10)
# Find observations for a set of values
labels(map, c('a', 'b', 'g'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.