Hello, I've been trying to understand my problem with filter and why it gives different outcomes. I tried to find the answer but without a luck, hopefully it's not a total novice mistake.

This code doesn't consider both conditions and just filters out total steps that are equal or less than 50 AND separately filters our Sedentary minutes that are equal or less than 400.
It returns 844 rows.

In the first case, each row has to meet both conditions. filter(TotalSteps >= 50 & SedentaryMinutes >= 400)

In the second case, each row has to meet only one condition (hence, more rows returned). filter(!(TotalSteps <= 50 & SedentaryMinutes <= 400))
This statement is equivalent to: filter(!TotalSteps <= 50 | !SedentaryMinutes <= 400)

are removing the 96 entries that are contradicting my understanding because some of the elements seem to be understood as OR, even though I use AND.
I am attaching jpeg with my outcomes. Take a look at first 10 that are standing out. I understand that AND in logical table returns true if p and q are true. In here first 10 entries are not fullfilling that condition, yet they are removed in this command :

The first 10 in the image would be removed using filter(TotalSteps >= 50 & SedentaryMinutes >= 400) because while TotalSteps is greater than 50 for each, SedentaryMinutes is less than 400 for each. Thus, if you are looking for only those records that exceed both thresholds, these records do not satisfy both conditions.