Description Usage Arguments Value Author(s) See Also Examples
Convert number to a vector of logicals with predefine length
1 2 3 4 5 6 | ## Static method (use this):
## Misc$to.binary.logical(n, digits=0, r=TRUE, ...)
## Don't use the below:
## S3 method for class 'Misc'
to.binary.logical(static, n, digits=0, r=TRUE, ...)
|
n |
Number to convert. |
digits |
The length of output vector. If digits is less than the length of the output vector, the actual length is used. Default is 0. |
r |
Order of the output nnumbers If r=TRUE then big-endian otherwise small-endian. Default is |
... |
Not used |
The logical
vector
of 'digits' length. If 'digits' is less than the length of the output vector,
the actual length is used.
Alex Lisovich, Roger Day
For more information see Misc
.
1 2 | b<-Misc$to.binary.logical(25,digits=10);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.