bc.raw: Broadcasted Operations that Take Raw Arrays and Return Raw Arrays
Description
The bc.raw() function
performs broadcasted operations
on arrays of type raw, and the return type is alwaysraw.
For bit-wise operations, use bc.bit.
For relational operations with logical (TRUE/FALSE/NA) results, use bc.rel.
Usage
bc.raw(x, y, op, ...)
# S4 method for ANY
bc.raw(x, y, op)
Value
bc.raw()
always returns an array of type raw.
For the relational operators,
01 codes for TRUE results,
and 00 codes for FALSE results.
Arguments
x, y
conformable vectors/arrays of type raw.
op
a single string, giving the operator.
Supported operators: ==, !=, <, >, <=, >=, pmin, pmax, diff.
The relational operators work the same as in bc.rel,
but with the following difference:
a TRUE result is replaced with 01,
and a FALSE result is replaced with 00.
The "diff" operator performs the byte equivalent of abs(x - y).