as.which: Coercion to (positive) integer positions

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Coercing to something like the result of which which

Usage

1
2
3
4
5
6
7
8
9
as.which(x, ...)
## Default S3 method:
as.which(x, ...)
## S3 method for class 'ri'
as.which(x, ...)
## S3 method for class 'bit'
as.which(x, range = NULL, ...)
## S3 method for class 'bitwhich'
as.which(x, ...)

Arguments

x

an object of classes bit, bitwhich, ri or something on which which works

range

a ri or an integer vector of length==2 giving a range restriction for chunked processing

...

further arguments (passed to which for the default method, ignored otherwise)

Details

as.which.bit returns a vector of subscripts with class 'which'

Value

a vector of class 'logical' or 'integer'

Author(s)

Jens Oehlschlägel

See Also

as.bit, as.logical, as.integer, as.which, as.bitwhich, as.ff, as.hi

Examples

1
2
3
4
5
6
7

Example output

Attaching package bit
package:bit (c) 2008-2012 Jens Oehlschlaegel (GPL-2)
creators: bit bitwhich
coercion: as.logical as.integer as.bit as.bitwhich which
operator: ! & | xor != ==
querying: print length any all min max range sum summary
bit access: length<- [ [<- [[ [[<-
for more help type ?bit

Attaching package: 'bit'

The following object is masked from 'package:base':

    xor

 [1]  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20
attr(,"class")
[1] "which"

bit documentation built on May 2, 2019, 4:48 p.m.