Learn R Programming

IdMappingAnalysis (version 1.16.0)

Misc$to.binary.logical: Convert number to a vector of logicals

Description

Convert number to a vector of logicals with predefine length

Usage

## Static method (use this): ## Misc$to.binary.logical(n, digits=0, r=TRUE, ...)
## Don't use the below: "to.binary.logical"(static, n, digits=0, r=TRUE, ...)

Arguments

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 TRUE.
...
Not used

Value

The logical vector of 'digits' length. If 'digits' is less than the length of the output vector, the actual length is used.

See Also

For more information see Misc.

Examples

Run this code
 b<-Misc$to.binary.logical(25,digits=10);
 

Run the code above in your browser using DataLab