Description Usage Arguments Value Examples
View source: R/MTScoreAnswers.R
Function to score known answers
1 2 | MTScoreAnswers(results = NULL, answers = NULL, qPoints = 1,
questionNames = NULL, scoreNAsAs = "wrong", NAValue = NULL)
|
results |
Needs column named 'RequesterAnnotation' |
answers |
Needs column named 'annotation' |
qPoints |
The points assigned to each question. Either a single value or a
vector of length |
questionNames |
Columns names of questions to be compared between results
and answers. If the columns names differ between the results and answers,
|
scoreNAsAs |
How to score NAs; possible values:
|
NAValue |
The value to replace NAs with. |
Returns the full inputted results
object appended with scores.
1 2 | #questionNames <- intersect(colnames(answers),colnames(results))
#qPoints <- c(5,5,1,5,1,5,5,5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.