dataStr {berryFunctions}R Documentation

str of datasets

Description

Print the str of each dataset returned by data

Usage

dataStr(only = NULL, msg = FALSE, package = NULL, ...)

Arguments

only

Charstring class: give information only about objects of that class. Can also be TRUE to sort output by nrow/ncol DEFAULT: NULL (ignore)

msg

Logical: message str info? DEFAULT: FALSE

package

Package name. DEFAULT: NULL

...

Other arguments passed to data

Value

invisible data.frame. Mainly prints via message in a for loop.

Author(s)

Berry Boessenkool, berry-b@gmx.de, November 2015, in search of good datasets for teaching

See Also

str

Examples


dataStr() # all loaded packages on search path (package=NULL)
# dataStr(package="datasets") # only datasets in base R package datasets
dataStr(TRUE) # sorted by nrow / ncol

d <- dataStr(only="data.frame") # data.frames only
head(d)
if(interactive()) View(d) # to sort in Rstudio Viewer
d[,c("Object","ncol","nrow")]


[Package berryFunctions version 1.20.1 Index]