Description Usage Arguments Value Examples
Determine whether the KIR is present, given a KIR string. Assumes a string with only "NEG" is absent, any other string not including "NEG" is present, if missing or some combination together with "NEG" return NA - see examples.
1 | KIR_present(string)
|
string |
KIR string vector |
logical vector, TRUE if the KIR is present, FALSE if it's not present, NA if passed an empty/NA string
1 2 | dat <- data.frame(kirstring = c("003/034+003/034", "NEG", "", NA, "003|NEG"), stringsAsFactors = FALSE)
KIR_present(dat$kirstring)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.