Description Usage Arguments Details Value See Also Examples
Generic function to compare two objects. The methods return a logical value, TRUE if the objects are the same type and value and FALSE otherwise. The default compares array values but not attributes or class. Some descriptive information in the objects may be ignored.
1 2 3 4 5 6 7 8 9 10 11 12 | testEqual(obj1, obj2, fuzz = 0)
## Default S3 method:
testEqual(obj1, obj2, fuzz = 1e-16)
## S3 method for class 'array'
testEqual(obj1, obj2, fuzz = 1e-16)
## S3 method for class 'list'
testEqual(obj1, obj2, fuzz = 1e-16)
## S3 method for class 'matrix'
testEqual(obj1, obj2, fuzz = 1e-16)
## S3 method for class 'numeric'
testEqual(obj1, obj2, fuzz = 1e-16)
|
obj1, obj2 |
Objects of the same class. |
fuzz |
Differences less than fuzz are ignored. |
The functions for comparing numeric values used in the default method for this generic replacement.
TRUE or FALSE.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.