Title: | Retrieve Data using the 'IsoMemo' API |
---|---|
Description: | API wrapper that contains functions to retrieve data from the 'IsoMemo' partnership databases. Web services for API: <https://isomemodb.com/api/v1/iso-data>. |
Authors: | Jan Abel [cre], Jianyin Roachell [aut], Andreas Neudecker [aut], Antonia Runge [aut], Ricardo Fernandes [aut] |
Maintainer: | Jan Abel <[email protected]> |
License: | GPL (>= 3) |
Version: | 24.10.1 |
Built: | 2025-01-29 03:53:04 UTC |
Source: | https://github.com/pandora-isomemo/isomemo-data |
Call API
callAPI(action, ...)
callAPI(action, ...)
action |
(character) name of the endpoint, one of "mapping-ids", "dbsources", "iso-data" or "mapping" |
... |
parameters for the endpoint, e.g. mappingId = "IsoMemo", dbsource = "LiVES, field = "site,longitude", ... |
Data retrieval for databases within the IsoMemo initiative (https://isomemo.com/). Given the parameters Database name, category names, and field names.
getData( db = getDatabaseList(mapping = "IsoMemo"), category = NULL, field = NULL, mapping = "IsoMemo" )
getData( db = getDatabaseList(mapping = "IsoMemo"), category = NULL, field = NULL, mapping = "IsoMemo" )
db |
(character) database options: "14CSea" "CIMA" "IntChron" "LiVES" |
category |
(character) domain specific categories of fields to retrieve: "Dating info","Isotopic proxies." If set to NULL (default) all categories are returned |
field |
(character) fields to return. If set to NULL (default) all fields will be returned |
mapping |
(character) Optionally, provide a specific mapping in order to obtain a list of databases only for that mapping. Check available mapping ids with getMappings() |
A data frame containing the requested databases, category domains, and variables of interest from the user
Get Database List
getDatabaseList(mapping = "IsoMemo")
getDatabaseList(mapping = "IsoMemo")
mapping |
(character) Optionally, provide a specific mapping in order to obtain a list of databases only for that mapping. Check available mapping ids with getMappings() |
A character vector with all available databases
Get field mapping table
getFields(mapping = "IsoMemo", colnamesAPI = FALSE)
getFields(mapping = "IsoMemo", colnamesAPI = FALSE)
mapping |
(character) Optionally, provide a specific mapping in order to obtain a list of databases only for that mapping. Check available mapping ids with getMappings() |
colnamesAPI |
(logical) Optionally, return a dataframe with the column names as they come from the 'IsoMemo' API |
A data frame that describes data field name, data type, and domain category
Get all available mapping ids
getMappings()
getMappings()
A character vector with all available mapping ids