valid_flash_cards: validate that flash cards have the required columns

Description Usage Arguments Details

View source: R/utils.R

Description

validate that flash cards have the required columns

Usage

1
valid_flash_cards(.data, question = question, answer = answer, clean = TRUE)

Arguments

.data

a date frame with columns 'question' and 'answer'

question

the column name for the questions in the dataset

answer

the column name for the answers in the dataset

clean

logical; whether or not to clean the column names

Details

Note: If clean = TRUE (the default) then the columns specified by the question and answer arguments must be in their cleaned form (lowercase snakecase)

the column names are case insensitive


tbradley1013/shinyFlash documentation built on April 1, 2020, 3:25 a.m.