R: Coercing to bitwhich

as.bitwhich {bit} | R Documentation

## Coercing to bitwhich

### Description

Functions to coerce to bitwhich

### Usage

    as.bitwhich(x, ...)
    ## S3 method for class 'bitwhich'
    as.bitwhich(x, ...)
    ## S3 method for class 'ri'
    as.bitwhich(x, ...)
    ## S3 method for class 'bit'
    as.bitwhich(x, range=NULL, ...)
    ## S3 method for class 'which'
    as.bitwhich(x, maxindex, ...)
    ## S3 method for class 'integer'
    as.bitwhich(x, ...)
    ## S3 method for class 'double'
    as.bitwhich(x, ...)
    ## S3 method for class 'logical'
    as.bitwhich(x, ...)

### Arguments

`x` | An object of class 'bitwhich', 'integer', 'logical' or 'bit' or an integer vector as resulting from 'which'
`maxindex` | the length of the new bitwhich vector
`range` | a `ri` or an integer vector of length==2 giving a range restriction for chunked processing
`...` | further arguments

### Value

a value of class `bitwhich`

### Author(s)

Jens Oehlschlägel

### See Also

`bitwhich`, `as.bit`

### Examples

     as.bitwhich(c(FALSE, FALSE, FALSE))
     as.bitwhich(c(FALSE, FALSE, TRUE))
     as.bitwhich(c(FALSE, TRUE, TRUE))
     as.bitwhich(c(TRUE, TRUE, TRUE))

[Package bit version 1.1-15 Index]