Learn R Programming

RQDA (version 0.3-0)

Ops.codings: Boolean operation on codings.

Description

Return the result codings of the Boolean operation.

Usage

and(CT1, CT2)

or(CT1, CT2)

not(CT1, CT2)

Arguments

CT1

Coding of code one.

CT2

Coding of code two.

Value

An object of class "codingsByOne" and "data.frame". It consists:

index1

index2

fid

filename

rowid

coding

The codings, or the text segments.

Details

CT1 and CT2 are subset of getCodingTable of a specific code or returned value of getCodingsByOne. In former situation, only columns of "index1", "index2","fid","filename" from CT1 and CT2 are used by this function.

These functions are the same as %and%, %or%, %not%.

See Also

relation, getCodingTable, %and%

Examples

Run this code
# NOT RUN {
a <- getCodingTable()
c1 <- subset(a,cid==6)
c2 <- subset(a,cid==24)
ans <- and(c1, c2)
ans ## put it into a widget for inspection

## another way to do the same
and(getCodingsByOne(6), getCodingsByOne(24))

## or operator
or(getCodingsByOne(6), getCodingsByOne(24))

## not operator
not(getCodingsByOne(6), getCodingsByOne(24))
# }

Run the code above in your browser using DataLab