r - What is the reason behind integer() == integer() not equal TRUE -


The last example in the following example is why logical (0) is returned instead of TRUE? What is the reason behind this?

  & gt; Integer (2) == Integer (2) [1] Correct true & gt; Integer (1) == Integer (1) [1] True & gt; Integer (0) == Integer (0) Logical (0)  

and similarly

  & gt; Null == faucet logical (0)> A & lt; - NULL & gt; B & L; - NULL & gt; A == b logical (0)  

As stated in the observations, objects If you try the similar (integer (0), integer (0)), then you can see the objects, then you are trying to compare the failures, not the numerical institutions, but the data The representation objects are.

That's it, it's just that they are not comparable.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -