Learn R Programming

webtools (version 0.7.12)

dfetch: 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)

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.

Arguments

pkg

The package name

ds

The dataset name

Examples

Run this code
dfetch('TSrepr', 'elec_load.rda')

Run the code above in your browser using DataLab