Compare: Methods for Function Compare in Package Brobdingnag

Description Note Examples

Description

Methods for comparision (greater than, etc) in package Brobdingnag

Note

As for min() and max(), comparison is not entirely straightforward in the presence of NAs.

The low-level workhorses are .Brob.equal() for equality and .Brob.greater() for ‘strictly greater than’. All other comparisons are calculated by combining these two.

Comparison [function .Brob.compare()] explicitly tests for a zero length argument and if given one returns logical(0) to match base behaviour.

Examples

1
2
3
  a <- as.brob(10)^(0.5 + 97:103)
  a < 1e100
  

Brobdingnag documentation built on May 2, 2019, 8:46 a.m.