How to create a condition in R, if the value of variable A is equal to the same value of B (without indication of the value of variables A and B), then create a new variable (C) with a new value.
For example, if the value of A == B, then a new variable C.
The ifelse function requires indicating the values of A and B.