Note that the logical column 'correct' is evaluated to TRUE if values are =1, =TRUE, ='TRUE', ='yes' or ='x', everything else is FALSE.

tbl_create_RAT_from_data_frame(questions, answer_key)

Arguments

questions

data frame with questions (requires at minimum columns 'question', 'answer', and logical TRUE/FALSE 'correct')

answer_key

data frame with answer key (requires at mimimum columns 'number', 'option')