'Comparison in R

I am writing some code for a statistics class and I don't know how I can compare two values in R.

Basically I want the programm to give me a statment like:

Z<A
Z>A
Z=A

etc.

Z and A are definied by other operations in the code. How do I get R to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source