pileup_logical {baizer} | R Documentation |
pileup another logical vector on the TRUE values of first vector
pileup_logical(x, v)
x |
logical vector |
v |
another logical vector |
logical vector
# first vector have 2 TRUE value
v1 <- c(TRUE, FALSE, TRUE)
# the length of second vector should also be 2
v2 <- c(FALSE, TRUE)
pileup_logical(v1, v2)