filter | R Documentation |
Filter a OneKP object
filter_by_code(x, code)
filter_by_clade(x, clade)
filter_by_species(x, species)
x |
OneKP object |
code |
character vector of 1KP IDs (e.g. URDJ) |
clade |
vector of clade-level NCBI taxonomy IDs or scientific names |
species |
vector of species-level scientific names or NCBI taxonomy IDs |
OneKP object
data(onekp)
# filter by 1KP ID
filter_by_code(onekp, c('URDJ', 'ROAP'))
# filter by species name
filter_by_species(onekp, 'Pinus radiata')
# filter by species NCBI taxon ID
filter_by_species(onekp, 3347)
# filter by clade name scientific name
filter_by_clade(onekp, 'Brassicaceae')
# filter by clade NCBI taxon ID
filter_by_clade(onekp, 3700)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.