test.equal
compare two objects
Description
Generic function to compare two objects. The methods return a
logical value, T if the objects are the same type and value and F otherwise.
The default compares array values but not attributes or class.
Some descriptive information in the objects may be ignored.
Usage
test.equal(obj1,obj2, fuzz=0)
Required Arguments
- obj1, obj2
-
Objects of the same class.
Optional Arguments
- fuzz
-
Differences less than fuzz are ignored.
Value
Details
The S function for comparing numeric values is the default method for this
generic replacement.
Examples
test.equal(model1,model2)
return to Table of Contents