Learn R Programming

rexer (version 1.0.0)

write_exercise_csv: Write an exercise csv file

Description

Writes an exercise data frame in a csv file of exercises.

Usage

write_exercise_csv(df, file, sep = ",")

Value

A string.

Arguments

df

A data frame.

file

A string, name of a text file.

sep

Column separator character.

See Also

Other support functions: create_exercise_csv(), create_exercise_data_frame(), create_exercise_excel(), read_exercise_csv(), read_exercise_excel(), set_pending_answers(), vector_to_string()

Examples

Run this code

file <- system.file("extdata/example.csv", package = "rexer")
df <- read_exercise_csv(file)
df <- set_pending_answers(df)

write_exercise_csv(df, file = tempfile(fileext = '.csv'))

Run the code above in your browser using DataLab