当前位置:网站首页>Why is true == "true" true in R- Why TRUE == “TRUE” is TRUE in R?
Why is true == "true" true in R- Why TRUE == “TRUE” is TRUE in R?
2022-06-25 07:11:00 【Technology feast】
problem :
- Why
TRUE == "TRUE"isTRUEin R? Why?TRUE == "TRUE"stay R Medium isTRUE? - Is there any equivalent for
===in R? stay R There is===Equivalent ?
Update: to update :
These are all returning FALSE : These all return FALSE :
TRUE == "True"TRUE == "true"TRUE == "T"The only TRUE value is TRUE == "TRUE" . Unique TRUE The value is TRUE == "TRUE" .
In case of checking with identical() everything works fine. In the use of identical() Check the case , Everything is all right .
Second Update: Second update :
By === operator I meant the process of checking the Value and the Data Type of a variable .=== The operator refers to checking Variable Of value and data type The process of .In this case I assumed that the == operator will only compare the Values of variables, not their Data Type as well. under these circumstances , I am assuming that == Operator only compares the value , Not their data type .
Solution :
Reference resources : https://stackoom.com/en/question/10eUx边栏推荐
- Kubernetes core components etcd details
- The upper and lower lines of the shell are merged into one line
- Kubernetes cluster dashboard & kuboard installation demo
- 太美的承诺因为太年轻
- Flask 的入门级使用
- Ctfhub web - divulgation d'informations - traversée du Répertoire
- ES 终于可以搜到”悟空哥“了!
- 使用OpenGL绘制shp文件
- Entry level use of flask
- lotus v1.16.0-rc2 Calibration-net
猜你喜欢
![[Shangshui Shuo series] day 4](/img/9f/fb4e2be392756cc7aa8de2e9c5aec7.png)
[Shangshui Shuo series] day 4

基于 KubeSphere 的分级管理实践

赚够钱回老家吗

Pratique de gestion hiérarchique basée sur kubesphere

Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment

有能力的人从不抱怨大环境!

有了 MySQL 为什么要用 NoSQL?

【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》

Acwing / 2004. Mauvaise écriture

原子Alpha开发板--SD卡和emmc烧录工具
随机推荐
【C语言】给字符串增加分隔符
[ACNOI2022]王校长的构造
Solar orbiter captured the full picture of the largest prominence eruption in history
Entry level use of flask
Efficient exploration | an application practice of ES geographical location query
PHP converts strings to hex and hex to string - PHP convert string to hex and hex to string
[tool sharing] a software that pays equal attention to appearance and skills
Message queue table structure for storing message data
Shell命令学习
Pratique de gestion hiérarchique basée sur kubesphere
基於 KubeSphere 的分級管理實踐
Power representation in go language
破万,我用了六年!
【一起上水硕系列】Day 5
Following the last minor upgrade of nodemcu (esp8266)
[he doesn't mention love, but every word is love]
Your local changes to the following files would be overwritten by merge: . vs/slnx. sqlite
Americo technology launches professional desktop video editing solution
[轻松学会shell编程]-5、计划任务
lotus windowPoSt 手动触发时空证明计算