title: Does the ternary operator exist in R?
body: <p>As the question asks, is there a control sequence in R similar to C's <a href="https://stackoverflow.com/a/392946/168775">ternary operator</a>? If so, how do you use it? Thanks!</p>