blood_group_match.Rdthis is the blood group match function
blood_group_match( donor_bl, recipient_bl, strict_match = TRUE, AB_priority = TRUE )
| donor_bl | a character value,this is the donor blood group |
|---|---|
| recipient_bl | a character value,this is the irecipient blood group |
| strict_match | a boolean value, TRUE/FALSE, this is the strict match indicator |
| AB_priority | a boolean value, TRUE/FALSE, this is the AB priority indicator |
a data.frame with matched recipient and donor
data("rawdata", package = "simKAP") blgmatch <- blood_group_match(rawdata$donor_blgroup,rawdata$recip_blgroup,TRUE,TRUE);