Learn R Programming

ProfessR (version 2.1)

DUPbank: Find Duplicate Questions

Description

Finds dupliucated questions in a set of Question Banks

Usage

DUPbank(Qbank)

Arguments

Qbank
a list of Question Banks

Value

  • Avector of duplicated questions
  • Fvector of duplicated files where the questions were extracted
  • Ivector of duplicated indexes where the questions were extracted
  • Nvector of duplicated indexes where the questions were extracted

Details

The program only checks the questions, not the answers. One could thus have several questions with the same wording, but different answers. I might change this in the future. Given the list of duplicated questions one should edit the original question bank files to remove them.

Examples

Run this code
data(QBANK1)

###  force some questions to be duplicates:
QBANK1[[51]]=QBANK1[[25]]
QBANK1[[52]]=QBANK1[[12]]
QBANK1[[14]]=QBANK1[[4]]


DQ = DUPbank(QBANK1)

DQ

Run the code above in your browser using DataLab