Misc$to.binary.logical {IdMappingAnalysis} | R Documentation

## 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:
    ## S3 method for class 'Misc'
    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.

### Author(s)

Alex Lisovich, Roger Day

### See Also

For more information see `Misc`.

### Examples

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

[Package IdMappingAnalysis version 1.26.0 Index]