COMPbank: Compare Question Banks

View source: R/COMPbank.R

COMPbankR Documentation

Compare Question Banks

Description

Compare two question banks to find non-duplicated questions

Usage

COMPbank(Qbank1, Qbank2)

Arguments

Qbank1

Question Bank 1

Qbank2

Question Bank 2

Details

Uses match to find matching questions in the two question banks.

Value

Vector index of questions in Qbank2 that are not found in Qbank1.

Note

Only the questions are compared, the answers are ingnored. The return vector will be a set of questions that are not duplicated, i.e. unique to question bank 2.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

SELbank

Examples


## Not run: 
LF = list.files(path="/home/lees/Class/GEOL_105/TESTBANK/EXAM_1", pattern="txt", full.names=TRUE )

kbank = vector(mode='list')
######   read in the question banks, each in one file
for(i in 1:length(LF))
  {
    h = Get.testbank(LF[i])
    kbank[[i]] = Get.testbank(LF[i])

  }
names(kbank) = LF
Kbank =  vector(mode='list')

for(i in 1:length(kbank))
  {

Kbank = c(Kbank, kbank[[i]])

  }

q2 = COMPbank(Kbank, kbank[[3]] )

###########  to extract these:
subq2 = subsetbank(kbank[[3]] , q2)
###########  to get the overlapping questions:

olap = 1:length(kbank[[3]])
olap[-q2]



## End(Not run)



ProfessR documentation built on Aug. 21, 2023, 9:07 a.m.