Simple summary of data available in named packages

pkg_data(package = NULL)

Arguments

package

A character vector giving the package(s) to look in for data sets, or NULL. By default, all packages in the search path are used, then the ‘data’ subdirectory (if present) of the current working directory.

Details

Syntactic sugar wrapping call to utils::data(package = package) to return basic information on datasets in package. No data are loaded by the call.

See also

data

Examples

head(pkg_data("loon.data"))
#> Package Item #> [1,] "loon.data" "SAheart" #> [2,] "loon.data" "SCmolecule" #> [3,] "loon.data" "alaska_forest" #> [4,] "loon.data" "binaryalphadigits" #> [5,] "loon.data" "blocks" #> [6,] "loon.data" "bone" #> Title #> [1,] "South African Heart Disease Data" #> [2,] "A protein/DNA complex molecule from Saccharomyces Cerevisiae" #> [3,] "Cooperative Alaska Forest Inventory data" #> [4,] "Binary Alphadigits" #> [5,] "A set of 100 plastic \"blocks\"" #> [6,] "Relative Spinal Bone Mineral Density Data"