| consistent | R Documentation |
The disordR package is designed to make permitted operations transparent and to prevent forbidden operations from being executed.
Function consistent() checks for matching hash codes of its
arguments and returns a Boolean. It is called by function
check_matching_hash() which either returns TRUE or
reports an informative error message if not.
consistent(x,y)
x %~% y
check_matching_hash(e1,e2,use=NULL)
x, y, e1, e2 |
Objects of class |
use |
optional object designed to give a more intelligible error
message; typically |
Function consistent() checks that its arguments have the same
hash code, and thus their elements can be paired up (e.g. added).
Idiom a %~% b is equivalent to consistent(a,b).
The package generally checks for consistency with function
check_matching_hash() which provides some helpful diagnostics
if consistent() finds a hash mismatch.
Boolean or an error as appropriate
Robin K. S. Hankin
disord
# rdis() + rdis() # this would make check_matching_hash() report an error, if executed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.