getFormat function

Get information for a single DataONE object format

Get information for a single DataONE object format

getFormat(x, ...) ## S4 method for signature 'CNode' getFormat(x, formatId)

Arguments

  • x: A CNode object instance
  • ...: (Not yet used)
  • formatId: The formatId to retrieve.

Returns

A dataframe of all object formats registered in the DataONE Object Format Vocabulary.

Examples

## Not run: library(dataone) cn <- CNode() fmt <- getFormat(cn, "eml://ecoinformatics.org/eml-2.1.0") cat(sprintf("format name: %s\n", fmt$name)) cat(sprintf("format type: %s\n", fmt$type)) cat(sprintf("format Id: %s\n", fmt$id)) ## End(Not run)

See Also

CNodeclass description.

  • Maintainer: Matthew B. Jones
  • License: Apache License 2.0
  • Last published: 2022-06-10