Misc$to.binary.logical {IdMappingAnalysis} | R Documentation |
Convert number to a vector of logicals with predefine length
## 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
.
b<-Misc$to.binary.logical(25,digits=10);