subset-traits | R Documentation |
You can subset traits by identifier or by position using the
`[`
operator.
## S4 method for signature 'traits,missing,missing,missing'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'traits,numeric,missing,missing'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'traits,character,missing,missing'
x[i, j, ..., drop = FALSE]
x |
A traits 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 traits object.
# Subset a traits object by identifier
traits_ex01['EFO_0004884']
# Or by its position in table traits
traits_ex01[1]
# Keep all traits except the second
traits_ex01[-2]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.