Learn R Programming

QCAtools (version 0.2.3)

and: And

Description

Logical 'and' of two conditions

Logical 'or' of two conditions

Logical 'not' of a condition

Usage

and(v1, v2)
or(v1, v2)
not(v)

Arguments

v1
A vector of fuzzy set scores of cases
v2
A vector of fuzzy set scores of cases
v
A vector of fuzzy set scores of cases

Value

the fuzzy set scores of the logical conjunction of v1 and v2 for each case, i.e. the minimum in each componentthe fuzzy set scores of the logical disjunction of v1 and v2 for each case, i.e. the maximum in each componentthe fuzzy set scores of the negation of v for each case, i.e. 1-v

Examples

Run this code
and(c(0,0.5,1), c(0.25, 0.75, 0.75))
or(c(0,0.5,1), c(0.25, 0.75, 0.75))
not(c(0,0.5,1))

Run the code above in your browser using DataLab