Learn R Programming

RQDA (version 0.3-0)

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

Description

Binary operations of RQDA.vector or codingsByOne.

Usage

e1 %and% e2

e1 %or% e2

e1 %not% e2

Arguments

e1

a RQDA object.

e2

a RQDA object.

Value

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

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

See Also

intersect, union, setdiff

Examples

Run this code
# 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.
# }

Run the code above in your browser using DataLab