sex | R Documentation |
Functions to provide sex code options and descriptions.
This function matches a sex code to a description of the sex of an animal.
If no code
argument is given, then a named character vector of all
valid codes is returned.
sex(x, ...)
x |
Numerical or character vector containing sex code or descriptors. |
language |
Language to be returned. |
# Complete sex code and description table:
sex()
# Description for numeric sex codes:
sex(1)
sex(1, language = "fr")
sex(1:10) # Vector input.
# Mixture of character input formats:
sex(c("1", "2", "3", "m", "F", "mal", "fe", NA, "f", "femelle", "h", "female"), language = "french")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.