Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/FILTERING-post_formula.R
Functionality to POST a formula to obtain a queryId
for use in chemspiderapi::get_queryId_status()
and chemspiderapi::get_queryId_results()
.
1 2 3 4 5 6 7 8 9 |
formula |
A character string of a chemical formula. |
dataSources |
Optional: Either a single character string or a vector of character string specifying the data sources. A list of possible data sources can be obtained from |
orderBy |
A character string indicating by which parameter the results should be ordered; see Details. |
orderDirection |
A character string indicating in which direction the results should be ordered; see Details. |
apikey |
A 32-character string with a valid key for ChemSpider's API services. |
coerce |
|
simplify |
|
Possible values for orderBy
are: "recordId"
(default), "massDefect"
, "molecularWeight"
, "referenceCount"
, "dataSourceCount"
, "pubmedCount"
, and "rscCount"
.
Possible values for orderDirection
are: "ascending"
(default) and "descending"
.
Says ChemSpider:
"If dataSources is not specified, all known sources are searched. This will take longer."
If successful, returns the queryId
as character string.
Returns the queryId string as (named) character vector.
Raoul Wolf (https://github.com/RaoulWolf/)
https://developer.rsc.org/compounds-v1/apis/post/filter/formula
1 2 3 4 5 6 7 | ## Not run:
## POST the formula of caffeine to get a query ID
formula <- "C8H10N4O2"
apikey <- "a valid 32-character ChemSpider apikey"
post_formula(formula = formula, apikey = apikey)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.