*! version 1.0.0 29nov2017

rdatasets-- R Datasets Available in CSV format from GitHub

Description

rdatasets facilitates access to a large collection of datasets
distributed with R or some of its packages. The collection was assembled
"to make these data more broadly accessible for teaching and statistical
software development". The command has three subcommands: list,
doc and get, described below.

List

rdatasets list [, clear]

with no additional arguments, will list the
packages available. On first use the command downloads a
database of datasets, so you must start with an empty dataset or specify clear.
The list of packages includes links to list the datasets in each package.

rdatasets list package [, clear]

lists the datasets available in a particular package or collection.
The list of datasets includes links to access their
online documentation. Like its predecessor, this subcommand will download
the database if necessary. The database may be searched directly.

Doc

rdatasets doc package dataset

Accesses the online documentation of a dataset. You must specify both the
package name and the dataset name. This subcommand does not interfere
with the dataset currently in memory, which may, of course, be the database.

Get

rdatasets get package dataset [, clear]

Downloads a given dataset. You must specify both the package name and the
dataset name. You must also start with an empty dataset or specify clear.
The command uses insheet, which prints the number of variables and the number
of observations downloaded.

Remarks

The command requires an Internet connection to operate, as the database and
any requested datasets are always downloaded directly from GitHub to ensure
that you always get the latest version available. Some of these datasets
may be available in Stata format from other sources.

Authors

The collection was assembled in GitHub by Vincent Arel-Bundock,
see R Datasets.
The rdatasets command was written by Germán Rodríguez
<grodri@princeton.edu>.