dfetch: Fetch/load a dataset - see dsearch() and dinfo()

View source: R/dsearch.R

dfetchR Documentation

Fetch/load a dataset - see dsearch() and dinfo()

Description

Get and load a dataset in a package. Use dsearch('query') to find packages with datasets, and dinfo('package') to get the package info and its datasets.

Usage

dfetch(pkg, ds)

Arguments

pkg

The package name

ds

The dataset name

Value

A vector of all the loaded dataset objects. Console output will list all found tables in the dataset (usually just the one). Note: some datasets will have package dependencies when loaded, please take heed of any such messages when viewing the loaded dataset object.

Examples

dfetch('TSrepr', 'elec_load.rda')

webtools documentation built on Aug. 12, 2022, 1:07 a.m.

Related to dfetch in webtools...