fetchData: 'fetchData' read a prepared dataset from a repository.

Description Usage Arguments Value Details Examples

Description

fetchData loads and returns datasets from a data repository. When invoked without parameters, a list of available datasets is printed. When invoked with a parameter set, the intended dataset is fetched with readRDS and returned.

Usage

1
fetchData(set)

Arguments

set

(character) name of the requested dataset

Value

a dataset, usually either a list or a data frame, or NULL (invisibly) if no dataset was specified or the requested dataset is not in the list of available datasets.

Details

Examples

1
2
fetchData()                         # prints available datasets
HGNC <- fetchData("HGNCreference")  # assigns the HGNC reference dataset

hyginn/BCB420.2019.ESA documentation built on May 29, 2019, 1:23 p.m.