Learn R Programming

infectiousR (version 0.1.0)

view_datasets_infectiousR: View Available Datasets in infectiousR

Description

This function lists all datasets available in the 'infectiousR' package. If the 'infectiousR' package is not loaded, it stops and shows an error message. If no datasets are available, it returns a message and an empty vector.

Usage

view_datasets_infectiousR()

Arguments

Value

A character vector with the names of the available datasets. If no datasets are found, it returns an empty character vector.

Examples

Run this code
if (requireNamespace("infectiousR", quietly = TRUE)) {
  library(infectiousR)
  view_datasets_infectiousR()
}

Run the code above in your browser using DataLab