Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/gradeFunctions.R
Determine the number of correct student responses to multiple choice exam items (questions)
1 | numberCorrect(responses, key)
|
responses |
A data.frame object (REQUIRED), as created with the
|
key |
A data.frame object (REQUIRED), as created with the
|
ThenumberCorrect()
function checks the student's responses to the
multiple choice exam test items (questions) with the appropriate version
answer key and creates a column No. Correct
indicating the number of test
items (questions) answered correctly by the particular student. The column
No. Correct
is added after the last column in the responses
data.frame
object.
The input responses
data.frame object extended with one column
(No. Correct
) indicating the number of multiple choice exam test items
(questions) answered correctly by the students.
Maikel Verouden
Other grade functions:
gradeExam()
,
linkNames()
1 2 3 4 5 6 7 8 | ## Load the answer key
key <- loadKey(keyFile = paste0(.libPaths()[1], "/wurmc/examples/keyFile.xlsx"))
## Load the student responses from a Microsoft Excel
responses <- loadResponses(respFile = paste0(.libPaths()[1], "/wurmc/examples/respFile.xlsx"))
## Determine the number of correct student responses
responses <- numberCorrect(responses, key)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.