bitwiseParity | R Documentation |
This function computes the bitwise parity of a set of integer, logical, or
raw values, or a list of such vectors. It is a convenient way to collapse a
set of UUID
s into a summary value, regardless of the
order of the UUID
s.
bitwiseParity(x, even = TRUE) ## S4 method for signature 'integer' bitwiseParity(x, even = TRUE) ## S4 method for signature 'logical' bitwiseParity(x, even = TRUE) ## S4 method for signature 'raw' bitwiseParity(x, even = TRUE) ## S4 method for signature 'UUIDList' bitwiseParity(x, even = TRUE) ## S4 method for signature 'list' bitwiseParity(x, even = TRUE)
x |
An integer, logical or raw vector or array, or a character vector or array
containing hexadecimal values (leading |
even |
A logical value specifying whether the parity should be even or odd |
If x
is of length zero, a vector of length zero of the same
storage mode as x
.
If x
is a character vector consisting solely of empty strings,
""
.
If x
is a character vector containing invalid hexadecimal
strings, NA
.
Otherwise, a vector of length 1 of the same storage mode as x
,
containing the bitwise parity computed across all elements of x
.
If the storage mode of x
is "character"
, the output will
be in hexadecimal notation with no leading "0x"
.
Adam C. Gower agower@bu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.