odd | R Documentation |
Get the odd or even numbers from a numeric vector
odd(vec)
even(vec)
vec |
A numeric atomic vector. |
odd
will extract the odd numbers from a vector.
even
will extract the
even numbers from a vector
A numeric atomic vector with the odd / even numbers
odd(1:10)
even(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.