Description Usage Arguments Value See Also Examples
Fetch accession passport data
1 2 |
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 |
selector |
NULL or a function to "select" variables of interest |
at.least |
stop fetching when at.least records are received from Genesys |
Paged data structure
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## 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 <- 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.