Compare-methods {frab} | R Documentation |
Comparision methods
Description
Methods for comparison (greater than, etc) in the frab package.
Functions frab_gt_num()
etc follow a consistent naming
convention; the mnemonic is the old Fortran .GT.
scheme [for
“greater than”].
Function frab_eq()
is an odd-ball, formally documented at
Arith.Rd
. It is slightly different from the other comparisons:
it calls low-level helper function c_frab_eq()
, which calls its
C namesake which is written for speed (specifically,
returning FALSE
as soon as it spots a difference between its
two arguments). Note that if any value is NA
, frab_eq()
will return FALSE
.
Usage
frab_eq(e1,e2)
frab_compare_frab(e1,e2)
frab_eq_num(e1,e2)
frab_ne_num(e1,e2)
frab_gt_num(e1,e2)
frab_ge_num(e1,e2)
frab_lt_num(e1,e2)
frab_le_num(e1,e2)
frab_compare_numeric(e1,e2)
num_eq_frab(e1,e2)
num_ne_frab(e1,e2)
num_gt_frab(e1,e2)
num_ge_frab(e1,e2)
num_lt_frab(e1,e2)
num_le_frab(e1,e2)
numeric_compare_frab(e1,e2)
Arguments
e1 , e2 |
Objects of class |
Value
Generally, return a frab
or a logical
Author(s)
Robin K. S. Hankin
See Also
Examples
rfrab()
a <- rfrab(26,sym=letters)
a[a<4] <- 100
[Package frab version 0.0-3 Index]