Learn R Programming

phylosim (version 3.0.5)

my.all.equal.PSRoot: Test if two objects are nearly equal

Description

Test if two objects are nearly equal.

This method simply calls all.equal.default with the tolerance parameter set to .Machine$double.eps ^ 0.5. More useful as a static method.

Usage

# S3 method for PSRoot
my.all.equal(static, target, current, ...)

Arguments

static

A PSRoot object.

target

R object.

current

Other R object, to be compared with target.

...

Not used.

Value

TRUE or FALSE.

See Also

For more information see PSRoot.

Examples

Run this code
# NOT RUN {
	PSRoot$my.all.equal(0.0,0.0001)
	PSRoot$my.all.equal(0.0,0.000000001)
 
# }

Run the code above in your browser using DataLab