getFormat: Get information for a single DataONE object format

Description Usage Arguments Value See Also Examples

Description

Get information for a single DataONE object format

Usage

1
2
3
4
getFormat(x, ...)

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

Arguments

x

A CNode object instance

...

(Not yet used)

formatId

The formatId to retrieve.

Value

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

See Also

CNode class description.

Examples

1
2
3
4
5
6
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))

dataone documentation built on July 2, 2018, 1:02 a.m.