subset-associations | R Documentation |
You can subset associations by identifier or by position using the
`[`
operator.
## S4 method for signature 'associations,missing,missing,missing'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'associations,numeric,missing,missing'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'associations,character,missing,missing'
x[i, j, ..., drop = FALSE]
x |
A associations object. |
i |
Position of the identifier or the name of the identifier itself. |
j |
Not used. |
... |
Additional arguments not used here. |
drop |
Not used. |
A associations object.
# Subset an associations object by identifier
associations_ex01['22505']
# Or by its position in table associations
associations_ex01[2]
# Keep all associations except the second
associations_ex01[-2]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.