powered by
Takes an integer vector and returns every odd or even element
evens(vec)
Integer vector
Returns an integer vector consisting of only the odd/even elements.
# NOT RUN { x <- as.integer(c(6,3,4,7,8,1047482,7)) evens(x) odds(x) # }
Run the code above in your browser using DataLab