Skip to contents

Reads an Excel file of exercises and returns a data frame.

Usage

read_exercise_excel(file, sheet_index = NULL, sheet_name = NULL)

Arguments

file

A string, name of a text file.

sheet_index

A number, sheet index in the workbook.

sheet_name

A string, sheet name.

Value

A data frame.

Details

In addition to the file, we can indicate the sheet by its name or index. If we do not indicate anything, it considers the first sheet.

Examples


file <- system.file("extdata/exercises.xlsx", package = "rexer")
df <- read_exercise_excel(file)