Description Usage Arguments Details Value Author(s) See Also Examples
These functions are used to specify how the result of a comparison between two objects should be converted to a set of comments for feedback.
1 2 3 4 5 | questionComments(answerNames, ...)
comments(answerName, ...)
transformComment(pattern, comment)
|
answerNames |
The names of objects that have been compared. |
answerName |
The name of one object that has been compared. |
pattern |
A regular expression to search for within the comparison transformations. |
comment |
A comment to record if the regular expression is matched. |
... |
For |
These functions are used to define a commenting scheme. The
function commentQuestions()
can then be used to apply
the results to a set of comparisons, as generated by
compareFiles()
.
An object of class "questionComments"
.
Paul Murrell
commentQuestions
and
compareFiles
1 2 3 4 5 6 | # Comment a comparison involving several objects
# Start with a comment of 1 and deduct 1 if the comparison failed
questionComments(c("id", "age", "edu", "class"),
comments("class",
transformComment("coerced",
"'class' is a factor!")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.