subsetbank {ProfessR}R Documentation

Subset a Question Bank

Description

Extract a subset from a question bank

Usage

subsetbank(QBANK, sel)

Arguments

QBANK

Question Bank List

sel

integer vector of index to specific questions

Details

for selecting specific questions

Value

Question Bank with selections

Author(s)

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

See Also

SELbank, COMPbank

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]])

  }

##########   get 50 odd numbered sample questions

isel = seq(from=1, to=100, by=2)

oddset1 = subsetbank(Kbank, isel)


## End(Not run)



[Package ProfessR version 2.4-3 Index]