View source: R/aclassesEnums.R
bitlist | R Documentation |
This function is used to compute the bitwise OR
of a collection of values given in a vector
or individually via the ... mechanism
(or both). It is equivalent to the C code
a | b | c
and that form is also supported for
BitwiseValue
objects.
And this function uses
bitlist(a, b, c)
or
bitlist(c(a, b, c))
.
These two forms support interactive use
and programmatic use where the
values are already in a single container (i.e. vector or list).
This uses Steve Dutky's bitops package.
bitlist(...)
... |
individual values or vectors which are
all unravelled into a single vector
via |
A single number which is the bitwise OR'ing of all the elements performed successively.
Duncan Temple Lang
Steve Dutky's bitops
package
and specifically bitOr
package.
BitwiseValue-class
bitlist(c(2, 3, 8)) bitlist(2, 3, 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.