get_accessions | R Documentation |
Get accession passport data as a data table.
get_accessions(
filters = list(),
page = 0,
size = 1000,
fields = NULL,
exclude = NULL,
selector = NULL,
at.least = NULL
)
filters |
an R |
page |
the page index (0-based) |
size |
number of records to load per page (page size) |
fields |
list of fields to fetch from Genesys |
exclude |
list of field prefixes to exclude from the Genesys response |
selector |
NULL or a function to "select" variables of interest |
at.least |
stop fetching when at.least records are received from Genesys |
Data table
mcpd_filter
## Not run:
# Retrieve all accession data by country of origin (Slovenia, Ivory Coast)
accessions <- genesysr::get_accessions(list(countryOfOrigin = list(code3 = c('SVN', 'CIV'))))
# Fetch Musa, but only geographic data and accessionNumber
musa <- genesysr::get_accessions(list(taxonomy = list(genus = c('Musa'))),
fields = c("accessionNumber", "geo"))
# Apply selector function
accessions <- genesysr::get_accessions(mcpd_filter(ORIGCTY = c('DEU', 'SVN')),
selector = function(x) {
list(id = x$id, acceNumb = x$accessionNumber, instCode = x$instituteCode)
}, at.least = 100)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.