powered by
You can subset traits by identifier or by position using the `[` operator.
`[`
# S4 method for traits,missing,missing,missing [(x, i, j, ..., drop = FALSE)# S4 method for traits,numeric,missing,missing [(x, i, j, ..., drop = FALSE)# S4 method for traits,character,missing,missing [(x, i, j, ..., drop = FALSE)
# S4 method for traits,numeric,missing,missing [(x, i, j, ..., drop = FALSE)
# S4 method for traits,character,missing,missing [(x, i, j, ..., drop = FALSE)
A traits object.
Position of the identifier or the name of the identifier itself.
Not used.
Additional arguments not used here.
# 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]
Run the code above in your browser using DataLab