summarise.r.datasets: Summarise the dimensions and type of available R example...

View source: R/NCmisc.R

summarise.r.datasetsR Documentation

Summarise the dimensions and type of available R example datasets

Description

This function will parse the current workspace to see what R datasets are available. Using the toHTML function from the 'tools' package to interpret the data() call, each dataset is examined in turn for type and dimensionality. Can also use a filter for dataset types, to only show, for instance, matrix datasets. Also you can specify whether to only look for base datasets, or to search for datasets in all available packages. Result is a printout to the console of the available datasets and their characteristics.

Usage

summarise.r.datasets(
  filter = FALSE,
  types = c("data.frame", "matrix"),
  all = FALSE,
  ...
)

Arguments

filter

logical, whether to filter datasets by 'types'

types

if filter=TRUE, which data types to include in the result

all

logical, if all=TRUE, look for datasets in all available packages, else just base

...

if all is false, further arguments to the data() function to search datasets

Author(s)

Nicholas Cooper

Examples

summarise.r.datasets()
summarise.r.datasets(filter=TRUE,"matrix")

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.