Skip to contents

Ensure that a dataframe conforms to examling standards, stopping otherwise.

Usage

validate_df(df)

Arguments

df

Dataframe to validate.

Requirements

The dataframe must have the following columns:

  • Question

  • Type

  • Correct

  • Category

Previously, the Image column was also required. Now, if there is no Image column, an empty one is added.

All columns must be plain text.

There must be at least one answer column.

For common errors, see the following vignette:

vignette("spreadsheet-validation", package = "examling")

Credits

Brighton Pauli, 2022.