powered by
Retrieves selected PubChem compound properties for one or more identifiers.
pc_property( identifier, properties, namespace = "cid", searchtype = NULL, options = NULL, ... )
A typed `PubChemRecord` object.
Identifier(s).
Character vector of property names.
PubChem namespace.
Search type.
Named list of query options.
Additional arguments forwarded to `httr::RETRY`.
`properties` is encoded into the PUG REST operation path. At least one property name is required.
prop_rec <- pc_property(2244, properties = c("MolecularWeight"), offline = TRUE) inherits(prop_rec, "PubChemRecord") if (FALSE) { pc_property(2244, properties = c("MolecularWeight", "XLogP")) }
Run the code above in your browser using DataLab