sex: Sex Codes and Descriptions.

View source: R/sex.R

sexR Documentation

Sex Codes and Descriptions.

Description

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.

Usage

sex(x, ...)

Arguments

x

Numerical or character vector containing sex code or descriptors.

language

Language to be returned.

Examples

# 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")

TobieSurette/gulf.data documentation built on Jan. 19, 2025, 7:50 p.m.