as.which {bit} | R Documentation |
Coercing to something like the result of which which
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, ...)
x |
an object of classes |
range |
a |
... |
further arguments (passed to |
as.which.bit
returns a vector of subscripts with class 'which'
a vector of class 'logical' or 'integer'
Jens Oehlschlägel
as.bit
, as.logical
, as.integer
, as.which
, as.bitwhich
, as.ff
, as.hi
r <- ri(5, 20, 100) x <- as.which(r) x stopifnot(identical(x, as.which(as.logical(r)))) stopifnot(identical(x, as.which(as.bitwhich(r)))) stopifnot(identical(x, as.which(as.bit(r))))