pileup_logical: pileup another logical vector on the TRUE values of first...

pileup_logicalR Documentation

pileup another logical vector on the TRUE values of first vector

Description

pileup another logical vector on the TRUE values of first vector

Usage

pileup_logical(x, v)

Arguments

x

logical vector

v

another logical vector

Value

logical vector

Examples


# 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)


baizer documentation built on Oct. 19, 2023, 9:07 a.m.