## 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)
Run the code above in your browser using DataLab