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

Description Usage Arguments Value Author(s) See Also Examples

Description

Convert number to a vector of logicals with predefine length

Usage

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, ...)

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

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

IdMappingAnalysis documentation built on Oct. 31, 2019, 3:30 a.m.