Compare-methods {Brobdingnag}R Documentation

Methods for Function Compare in Package Brobdingnag


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


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] explicitly tests for a zero length argument and if given one returns logical(0) to match base behaviour.


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

[Package Brobdingnag version 1.2-6 Index]