subsetbank | R Documentation |
Extract a subset from a question bank
subsetbank(QBANK, sel)
QBANK |
Question Bank List |
sel |
integer vector of index to specific questions |
for selecting specific questions
Question Bank with selections
Jonathan M. Lees<jonathan.lees@unc.edu>
SELbank, COMPbank
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.