Learn R Programming

nprcgenekeepr (version 1.0.5)

convertStatusCodes: Converts status indicators to a Standardized code

Description

Part of Pedigree Curation

Usage

convertStatusCodes(status)

Arguments

status

character vector or NA. Flag indicating an individual's status as alive, dead, sold, etc.

Value

A factor vector of the standardized status codes with levels: `ALIVE`, `DECEASED`, `SHIPPED`, and `UNKNOWN`.

Examples

Run this code
# NOT RUN {
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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab