How to classify even and odd numbers using R