What is the difference between "==" and "=" in R?

  • "=" is not used in R
  • "==" is used for assignment and "=" is used for comparison
  • "==" is used for comparison and "=" is used for assignment
  • There is no difference
In R, "==" is a comparison operator used to test for equality, while "=" is used for assignment, especially in the context of function arguments. However, "<-" is more commonly used for assignment.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *