pkgmaker (version 0.32.2)

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

utils::data, ldata

Examples

Run this code
# NOT RUN {
# list all data objects
head(list.data())

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

# }

Run the code above in your browser using DataLab