Calculations on Sets (Boolean Arithmetic on Sets)
See Also
Performs Boolean arithmetic on sets on the contents of vectors. The expression is displayed at the top of the menu and can be constructed step by step by combining data structures and operators. Brackets can be used to control the order of evaluation when required. You can also type directly into the expression box.

Available Data

Lists data structures of the types requested. Double-click on a name to copy it into the expression being formed. You can control what structures are displayed in the available data box by selecting the data type checkboxes.

Save Result In

Specifies a data structure to contain the result of the expression. If this structure already exists you should ensure it is the appropriate type to store the result.

Operators:

OperatorNameDescription
.and.Intersectionrepresents the Boolean "and" operation: for example x.AND.y produces a vector that contains any item that is in both x and y
.or.Unionrepresents the Boolean "or" operation: for example x.OR.y produces a vector that contains any item that is in either x or y
.eor.exclusive orrepresents "exclusive or": for example x.EOR.y produces a vector that contains any item that is in either x or y but not both of them
but notrepresents "not", for example x-y produces a vectors that contains the items that are in x but not in y

Options

This allows you to select options and output to be used.

Display resulting set in spreadsheet

The saved set will be displayed within a new spreadsheet window.

Display resulting set in Output Window

The saved set will be displayed within the Output Window.

Tolerance for numerical comparisons

This defines the tolerance to be used when comparing numbers.

Compare factor using

Specifies whether the values of factors are compared using their levels or their labels.

See Also