Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 209970

R studio, how to check if number in vector is ODD or EVEN

$
0
0

Say you have:

vector <- c(1,2,3,4,5)

Using if else statements, and a for loop - how can I check if the number is ODD in the if statemnt?


Viewing all articles
Browse latest Browse all 209970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>