View source: R/convertStatusCodes.R
convertStatusCodes | R Documentation |
Part of Pedigree Curation
convertStatusCodes(status)
status |
character vector or NA. Flag indicating an individual's status as alive, dead, sold, etc. |
A factor vector of the standardized status codes with levels:
ALIVE
, DECEASED
, SHIPPED
, and UNKNOWN
.
library(nprcgenekeepr)
original <- c("A", "alive", "Alive", "1", "S", "Sale", "sold", "shipped",
"D", "d", "dead", "died", "deceased", "2",
"shiped", "3", "U", "4", "unknown", NA,
"Unknown", "H", "hermaphrodite", "U", "Unknown", "4")
convertStatusCodes(original)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.