Learn R Programming

nprcgenekeepr (version 1.0.8)

convertAncestry: Converts the ancestry information to a standardized code

Description

Part of Pedigree Curation

Usage

convertAncestry(ancestry)

Value

A factor vector of standardized designators specifying if an animal is a Chinese rhesus, Indian rhesus, Chinese-Indian hybrid rhesus, or Japanese macaque. Levels: CHINESE, INDIAN, HYBRID, JAPANESE, OTHER, UNKNOWN.

Arguments

ancestry

character vector or NA with free-form text providing information about the geographic population of origin.

Examples

Run this code
original <- c("china", "india", "hybridized", NA, "human", "gorilla")
convertAncestry(original)

Run the code above in your browser using DataLab