Description Usage Arguments Value Author(s) See Also Examples
Retrieve metadata for a dataverse record, using its object ID.
1 2 |
objectid |
Either a character string containing the id for a dataverse study (a handle) or an object of class “dvStudyAtom”. This could be returned from |
format.type |
An optional character string specifying the format of the returned metadata. Available options can be retrieved with |
include |
An optional character string specifying what metadata to include in the response. |
exclude |
An optional character string specifying what metadata to exclude from the response. |
dv |
An optional character string specifying the Dataverse to query. Default is the Harvard IQSS Dataverse. |
browser |
A logical specifying whether the query should be executed in a web browser. Default is |
... |
Optionally, additional arguments passed to |
An character string of class “dvMetadata” containing an XML data structure of metadata for the specified dataverse record. The exact form and contents of this response depend on the format.type
and any include
/exclude
statements.
Thomas J. Leeper
dvMetadataFormats
dvExtractFileIds
dvTermsOfUse
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# To retrieve all metadata:
xml <- dvMetadata("hdl:1902.1/17218")
# To retrieve metdata in Dublin Core format (instead of the default ("ddi"):
xml <- dvMetadata("hdl:1902.1/17218", format.type="oai_dc")
# To extract just the study description, without file information:
xml <- dvMetadata("hdl:1902.1/17218", include="codeBook/stdyDscr")
# To extract just basic file description(s), without other study details:
xml <- dvMetadata("hdl:1902.1/17218", include="codeBook/fileDscr")
# To extract just data summaries for all variables, without other study details:
xml <- dvMetadata("hdl:1902.1/17218", include="codeBook/dataDscr")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.