get_object: Get a DataONE object

Description Usage Arguments Examples

Description

This function download a DataONE data or metadata object into the R environment

Usage

1
get_object(data_pid, as = "parsed", ...)

Arguments

data_pid

(character) The data or metadata object PID

as

desired type of output: raw, text or parsed. content attempts to automatically figure out which one is most appropriate, based on the content-type. (based on httr::content())

...

pass arguments to read.csv

Examples

1
2
3
4
5
## Not run: 
   data <- get_object("urn:uuid:a81f49db-5841-4095-aee2-b0cad7a35cc0")
   meta <- get_object("doi:10.18739/A2PC2T79B")

## End(Not run)

isteves/dataimport documentation built on May 7, 2019, 8:39 a.m.