fetch: Fetch a dataset via the Data Retriever

Description Usage Arguments Examples

View source: R/rdataretriever.R

Description

Each datafile in a given dataset is downloaded to a temporary directory and then imported as a data.frame as a member of a named list.

Usage

1
fetch(dataset, quiet = TRUE, data_names = NULL)

Arguments

dataset

the names of the dataset that you wish to download

quiet

logical, if true retriever runs in quiet mode

data_names

the names you wish to assign to cells of the list which stores the fetched dataframes. This is only relevant if you are downloading more than one dataset.

Examples

1
2
3
4
5
6
7
8
9
## fetch the portal Database
portal = rdataretriever::fetch('portal')
class(portal)
names(portal)
## preview the data in the portal species datafile
head(portal$species)
vegdata = rdataretriever::fetch(c('plant-comp-ok', 'plant-occur-oosting'))
names(vegdata)
names(vegdata$plant_comp_ok)

ropensci/rdataretriever documentation built on Aug. 21, 2018, 4:46 a.m.