Top "Logical-operators" questions

Logical operators are symbols that aid in evaluating boolean expressions.

Using multiple criteria in subset function and logical operators

If I want to select a subset of data in R, I can use the subset function. I wanted to …

r subset logical-operators operator-precedence
Regex for "AND NOT" operation

I'm looking for a general regex construct to match everything in pattern x EXCEPT matches to pattern y. This is …

regex logical-operators
Find the indices of elements greater than x

Given the following vector, a = [1, 2, 3, 4, 5, 6, 7, 8, 9] I need to identify the indices of "a" whose elements are >= than 4, like this: …

python indexing logical-operators indices
How to use numpy.where with logical operators

I'm trying to find the indices of all elements in an array that are greater than a but less than …

python numpy where logical-operators
Dealing with TRUE, FALSE, NA and NaN

Here is a vector a <- c(TRUE, FALSE, FALSE, NA, FALSE, TRUE, NA, FALSE, TRUE) I'd like a …

r boolean logical-operators na r-faq
How do I use the bitwise operator XOR in Lua?

How can I implement bitwise operators in Lua language? Specifically, I need a XOR operator/method.

lua bitwise-operators logical-operators
Issues with ANDs and ORs (COBOL)

I can't seem to get this one part right. I was given a input file with a bunch of names, …

cobol logical-operators
Boolean OR in sed regex

I'm trying to replace all references of a package named boots in a configuration file. The line format is add …

regex sed logical-operators
Can I use the not operator in C++ on int values?

Strange question, but someone showed me this, I was wondering can you use the not ! operator for int in C++? (…

c++ int logical-operators negation
Subset a data frame using OR when the column contains a factor

I would like to make a subset of a data frame in R that is based on one OR another …

r logical-operators