Question: R supports Boolean operations & and && ( logical AND ) , | and | | ( logical OR ) , ! NOT ( logical

R supports Boolean operations & and && (logical AND),| and ||(logical OR),! NOT (logical negation) and, xor()(function for XOR, exclusive OR). The shorter forms (& and |) perform comparisons element by element as the arithmetic operations do. The longer forms (&& and ||) evaluate left to right looking only at the first element of each vector; evaluation proceeds only until the result is determined.
If a and b are two logical vectors the
length(x && y)
is equal to
Group of answer choices
0
None of the above
length(y)
length(x)
1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!