read_exercise_excel {rexer} | R Documentation |
Read an exercise Excel file
Description
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. |
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.
Value
A data frame.
See Also
Other support functions:
create_exercise_csv()
,
create_exercise_data_frame()
,
create_exercise_excel()
,
read_exercise_csv()
,
set_pending_answers()
,
vector_to_string()
,
write_exercise_csv()
Examples
file <- system.file("extdata/exercises.csv", package = "rexer")
df <- read_exercise_csv(file)
[Package rexer version 1.0.0 Index]