Learn R Programming

ggalign (version 1.0.1)

read_example: Read Example Data

Description

This function reads example data from the file. If no file is specified, it returns a list of available example files.

Usage

read_example(file = NULL)

Value

If file is NULL, returns a character vector of available example file names. Otherwise, returns the contents of the specified example file, read as an R object.

Arguments

file

A string representing the name of the example file to be read. If NULL, the function will return a list of available example file names.

Examples

Run this code
read_example()

Run the code above in your browser using DataLab