Extract or replace part of an boolean vector
## S3 method for class 'bit' x[[i]] ## S3 replacement method for class 'bit' x[[i]] <- value ## S3 method for class 'bit' x[i] ## S3 replacement method for class 'bit' x[i] <- value ## S3 method for class 'bitwhich' x[[i]] ## S3 replacement method for class 'bitwhich' x[[i]] <- value ## S3 method for class 'bitwhich' x[i] ## S3 replacement method for class 'bitwhich' x[i] <- value
The extractors [[
and [
return a logical scalar or
vector. The replacment functions return an object of class(x)
.
Jens Oehlschlägel
x <- as.bit(c(FALSE, NA, TRUE)) x[] <- c(FALSE, NA, TRUE) x[1:2] x[-3] x[ri(1,2)] x[as.bitwhich(c(TRUE,TRUE,FALSE))] x[[1]] x[] <- TRUE x[1:2] <- FALSE x[[1]] <- TRUE
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.