powered by
Get the odd or even numbers from a numeric vector
odd(vec)even(vec)
even(vec)
A numeric atomic vector with the odd / even numbers
A numeric atomic vector.
odd will extract the odd numbers from a vector. even will extract the even numbers from a vector
odd
even
odd(1:10) even(1:10)
Run the code above in your browser using DataLab