逻辑数值比较Comparison of logicals
TRUE==FALSE
比较数字
-6*14 !=17-101
比较英文字符串Comparison of character strings
JIAXUE_JIYIN == BEST_JINYIN_COMPANY
将逻辑数值与数字进行比较Compare a logical with a numeric
TRUE==1
TRUE ==0
TRUE ==3
直接比较中文字符
佳学基因佳学基因
佳学基因加学基因
运行结果
逻辑数值比较Comparison of logicals
TRUE==FALSE
[1] FALSE
比较数字
-6*14 !=17-101
[1] FALSE
比较英文字符串Comparison of character strings
“JIAXUE_JIYIN” == “BEST_JINYIN_COMPANY”
[1] FALSE
将逻辑数值与数字进行比较Compare a logical with a numeric
TRUE==1
[1] TRUE
TRUE ==0
[1] FALSE
TRUE ==3
[1] FALSE
直接比较中文字符
"佳学基因"=="佳学基因"
[1] TRUE
"佳学基因"=="加学基因"
[1] FALSE