dataverse_metadata {dataverse} | R Documentation |
Dataverse metadata
Description
Get metadata for a named Dataverse.
Usage
dataverse_metadata(
dataverse,
key = Sys.getenv("DATAVERSE_KEY"),
server = Sys.getenv("DATAVERSE_SERVER"),
...
)
Arguments
dataverse |
A character string specifying a Dataverse name or an object of class “dataverse”. |
key |
A character string specifying a Dataverse server API key. If one
is not specified, functions calling authenticated API endpoints will fail.
Keys can be specified atomically or globally using
|
server |
A character string specifying a Dataverse server.
Multiple Dataverse installations exist, with |
... |
Additional arguments passed to an HTTP request function, such as
|
Details
This function returns a list of metadata for a named Dataverse. Use dataverse_contents
to list Dataverses and/or datasets contained within a Dataverse or use dataset_metadata
to get metadata for a specific dataset.
Value
A list
See Also
Examples
## Not run:
# download file from:
# https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/ARKOTI
monogan <- get_dataverse("monogan")
monogan_data <- dataverse_contents(monogan)
dataverse_metadata(monogan)
## End(Not run)