data_xray: Get detailed info on R package datasets

Description Usage Arguments Output columns Examples

View source: R/data_xray.R

Description

finds all datasets in a specified package and returns a tibble with information on the dimensions of the datasets as well as data types. It is an alternative to data() which simply lists the datasets with short descriptions.

Usage

1
2
3
4
5
6
data_xray(
  packagenames = NULL,
  include_package = TRUE,
  allclasses = FALSE,
  link = FALSE
)

Arguments

packagenames

a character vector providing the package(s) to look in for data sets, or NULL. If NULL, all loaded packages will be searched.

link

a logical. If TRUE name column links to dataset documentation on rdrr.io. Helpful for .html output. Defaults to FALSE.

Output columns

Examples

1
2
3
4
5
6
7
8
x <- data_xray("ggplot2")
View(x)

x <- data_xray()
View(x)

x <- data_xray(c("fivethirtyeight", "pgmm"))
View(x)

jtr13/datacat documentation built on Nov. 14, 2021, 9:11 p.m.