Ops.RQDA: Binary operations of some types of RQDA objects

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

Description

Binary operations of RQDA.vector or codingsByOne.

Usage

1
2
3
4
5
e1 %and% e2

e1 %or% e2

e1 %not% e2

Arguments

e1

a RQDA object.

e2

a RQDA object.

Details

e1 and e2 can be objects of class "RQDA.vector" includes classes of "fileId", "fileName", "caseId", "caseName". They can be objects of class "codingsByOne", see getCodingsByOne. e1 and e2 must be the same class.

For class of "RQDA.vector", %and% is the intersect of e1 and e2. %or% is the union of e1 and e2. %not% is the defined as setdiff(e1, e2).

Value

an object with the same structure and class of e1 and e2.

Author(s)

HUANG Ronggui

See Also

intersect, union, setdiff

Examples

1
2
3
4
5
6
7
8
## Not run: 
filesCodeByAnd(1:2) %and% filesCodeByAnd(3) ## files coded by 1 and 2 as well as 3
filesCodeByAnd(1:2) %or% filesCodeByAnd(3) ## files coded by 1 and 2 or 3
filesCodeByAnd(1:2) %not% filesCodeByAnd(3) ## files coded by 1 and 2 but not 3

getCodingsByOne(1) %or% getCodingsByOne(2) ## codings of 1 or 2.

## End(Not run)

RQDA documentation built on May 31, 2017, 2:52 a.m.