subset-trait_categories | R Documentation |
You can subset trait_categories by trait category (string) or
by position using the `[`
operator.
## S4 method for signature 'trait_categories,missing,missing,missing'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'trait_categories,numeric,missing,missing'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'trait_categories,character,missing,missing'
x[i, j, ..., drop = FALSE]
x |
A trait_categories 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 trait_categories object.
# Get details about all trait categories:
all_trait_categories <- get_trait_categories(progress_bar = FALSE)
#
# Subsetting by position
#
all_trait_categories[1:5]
#
# Subsetting by trait category (character)
#
all_trait_categories['Liver enzyme measurement']
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.