Learn R Programming

RQDA (version 0.1-9)

and: Boolean operation on codings.

Description

Return codings belong to two codes.

Usage

and(CT1, CT2, showCoding = FALSE, method = c("overlap", "exact", "inclusion"))

Arguments

CT1
Coding of code one.
CT2
Coding of code two.
showCoding
Logic, return resulting coding if TRUE.
method
a character vector, used to define the operation of and.

Value

  • a data frame if there is overlapping coding. Otherwise, it is NULL.

Details

When the relation of two coding is element of method argument, then the overlapping coding is the result of the and operator.

See Also

relation, GetCodingTable

Examples

Run this code
a <- GetCodingTable()
c1 <- subset(a,cid==6)
c2 <- subset(a,cid==24)
and(c1,c2,T)

Run the code above in your browser using DataLab