Aliases: as.which.which as.which.NULL as.which.numeric as.which.integer as.which.logical as.which.ri as.which.bit as.which.bitwhich as.which
### ** Examples r <- ri(5, 20, 100) x <- as.which(r) x
[1] 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 attr(,"maxindex") [1] 100 attr(,"class") [1] "booltype" "which"
stopifnot(identical(x, as.which(as.logical(r)))) stopifnot(identical(x, as.which(as.bitwhich(r)))) stopifnot(identical(x, as.which(as.bit(r))))