Learn R Programming

sfsmisc (version 1.0-15)

str_data: Overview on All Datasets in an R Package

Description

Provide an overview over all datasets available by data() in a (list of) given Rpackages.

Usage

str_data(pkgs, ...)

Arguments

pkgs
character vector of names of Rpackages.
...
potentical further arguments to be passed to str; str(utils:::str.default) gives useful list.

Value

  • as with str(), there's no return value. Everything is printed (via cat) to the console.

See Also

str, data.

Examples

Run this code
str_data("cluster")

str_data("datasets", max=0, give.attr = FALSE)

### Data sets in all attached packages but "datasets" (and stubs):
s <- search()
(Apkgs <- sub("^package:", '', s[grep("^package:", s)]))
str_data(Apkgs[!Apkgs %in% c("datasets", "stats", "base")])

Run the code above in your browser using DataLab