Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

list.data

List Package Data Objects


Description

Lists data objects that are shipped within package(s).

Usage

list.data(package = NULL)

Arguments

package

a single character string that specifies the name of a particular package where to look for data objects.

Value

a data.frame object with columns:

  • package: name of the package that holds the data object.

  • data: name of the key to use in utils::data or ldata to load the data object.

  • object: name of the (sub-)object that is contained in the data object.

See Also

Examples

# list all data objects
head(list.data())

# list all data objects in package 'datasets'
subset(list.data("datasets"), data %in% "beavers")

pkgmaker

Development Utilities for R Packages

v0.32.2
GPL (>= 2)
Authors
Renaud Gaujoux [aut, cre]
Initial release
2020-10-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.