Binary operations of RQDA.vector or codingsByOne.

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

HUANG Ronggui

See also

Examples

if (FALSE) { 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. }