Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Equality The most basic form of comparison is equality. Let's briefly recap its syntax. The following statements all evaluate to TRUE ( feel free to
Equality The most basic form of comparison is equality. Let's briefly recap its syntax. The following statements all evaluate to TRUE feel free to try them out in the console "intermediate" r TRUE FALSE "Rchitect" "rchitect" Notice from the last expression that R is case sensitive: R is not equal to r Keep this in mind when solving the exercises in this chapter! Instructions XP In the editor on the right, write R code to see if TRUE equals FALSE. Likewise, check if is not equal to Next up: comparison of character strings. Ask R whether the strings "useR" and "user" are equal. Finally, find out what happens if you compare logicals to numerics: are TRUE and equal?
Equality
The most basic form of comparison is equality. Let's briefly recap its syntax. The following statements all evaluate to TRUE feel free to try them out in the console
"intermediate" r
TRUE FALSE
"Rchitect" "rchitect"
Notice from the last expression that R is case sensitive: R is not equal to r Keep this in mind when solving the exercises in this chapter!
Instructions
XP
In the editor on the right, write R code to see if TRUE equals FALSE.
Likewise, check if is not equal to
Next up: comparison of character strings. Ask R whether the strings "useR" and "user" are equal.
Finally, find out what happens if you compare logicals to numerics: are TRUE and equal?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started