indices | R Documentation |
Extracts the indices of a specified matched set from a Matched object.
indices(x, set = "matched", ...)
## S4 method for signature 'Matched'
indices(x, set)
x |
Matched object. |
set |
A character string describing from which set to extract indices. can be one of 'focal', 'matched', 'pool', or 'unmatched'. |
... |
Additional arguments. |
Indices from 'focal' come from the focal
set
of matchRanges()
used to construct the Matched
object while indices from 'matched', 'pool', and 'unmatched'
come from the pool
set. Default returns the 'matched' indices
from the pool
set.
An integer vector corresponding
to the indices in the focal
or pool
which comprise the
"focal" or c("matched", "pool", "unmatched") sets.
set.seed(123)
mdf <- makeExampleMatchedDataSet(matched = TRUE)
head(indices(mdf))
head(indices(mdf, set = 'focal'))
head(indices(mdf, set = 'pool'))
head(indices(mdf, set = 'matched'))
head(indices(mdf, set = 'unmatched'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.