convertSexCodes: Converts sex indicator for an individual to a standardized...

Description Usage Arguments Details Value Examples

View source: R/convertSexCodes.R

Description

Part of Pedigree Curation

Usage

1
convertSexCodes(sex, ignoreHerm = TRUE)

Arguments

sex

factor with levels: "M", "F", "U". Sex specifier for an individual.

ignoreHerm

logical flag indicating if hermaphrodites should be treated as unknown sex ("U"), default is TRUE.

Details

Standard sex codes are

Value

A vector of factors representing standardized sex codes after transformation from non-standard codes.

Examples

1
2
3
4
5
6
library(nprcgenekeepr)
original <- c("m", "male", "1", "MALE", "M", "F", "f", "female",
              "FemAle", "U", "Unknown", "H", "hermaphrodite",
              "U", "Unknown", "3", "4")
sexCodes <- convertSexCodes(original)
sexCodes

rmsharp/nprcmanager documentation built on April 24, 2021, 3:13 p.m.