Ops.codings: Boolean operation on codings.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Return the result codings of the Boolean operation.

Usage

1
2
3
4
5
and(CT1, CT2)

or(CT1, CT2)

not(CT1, CT2)

Arguments

CT1

Coding of code one.

CT2

Coding of code two.

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%.

Value

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

index1
index2
fid
filename
rowid
coding

The codings, or the text segements.

Author(s)

Ronggui HUANG

See Also

relation, getCodingTable, %and%

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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))

## End(Not run)

RQDA documentation built on May 2, 2019, 5 p.m.