| as.bitwhich.NULL {bit} | R Documentation |
Coercing to bitwhich
Description
Functions to coerce to bitwhich
Usage
## S3 method for class ''NULL''
as.bitwhich(x, ...)
## S3 method for class 'bitwhich'
as.bitwhich(x, ...)
## S3 method for class 'which'
as.bitwhich(x, maxindex = attr(x, "maxindex"), ...)
## S3 method for class 'ri'
as.bitwhich(x, ...)
## S3 method for class 'integer'
as.bitwhich(x, poslength = NULL, ...)
## S3 method for class 'double'
as.bitwhich(x, poslength = NULL, ...)
## S3 method for class 'logical'
as.bitwhich(x, poslength = NULL, ...)
## S3 method for class 'bit'
as.bitwhich(x, range = NULL, poslength = NULL, ...)
as.bitwhich(x = NULL, ...)
Arguments
x |
An object of class 'bitwhich', 'integer', 'logical' or 'bit' or an integer vector as resulting from 'which' |
... |
further arguments |
maxindex |
the length of the new bitwhich vector |
poslength |
the number of selected elements |
range |
a |
Value
a value of class bitwhich()
Methods (by class)
-
as.bitwhich(`NULL`): method to coerce tobitwhich()(zero length) fromNULL -
as.bitwhich(bitwhich): method to coerce tobitwhich()frombitwhich() -
as.bitwhich(which): method to coerce tobitwhich()fromwhich() -
as.bitwhich(ri): method to coerce tobitwhich()fromri() -
as.bitwhich(integer): method to coerce tobitwhich()frominteger()(0andNAbecomeFALSE, everthing else becomesTRUE) -
as.bitwhich(double): method to coerce tobitwhich()fromdouble()(0andNAbecomeFALSE, everthing else becomesTRUE) -
as.bitwhich(logical): method to coerce tobitwhich()fromlogical() -
as.bitwhich(bit): method to coerce tobitwhich()frombit()
Author(s)
Jens Oehlschlägel
See Also
CoercionToStandard, as.booltype(), as.bit(),
as.bitwhich() , as.which(), as.ri(), ff::as.hi(), ff::as.ff()
Examples
as.bitwhich(c(0L, 1L, 2L, -2L, NA))
as.bitwhich(c(0, 1, 2, -2, NA))
as.bitwhich(c(NA, NA, NA))
as.bitwhich(c(FALSE, FALSE, FALSE))
as.bitwhich(c(FALSE, FALSE, TRUE))
as.bitwhich(c(FALSE, TRUE, TRUE))
as.bitwhich(c(TRUE, TRUE, TRUE))