# The HLA_typing_LIS dataset contains a table as might be found in a clinical
# laboratory information system:
print(HLA_typing_LIS)
# The `HLA_prefix_add` function can be used to add the correct HLA prefixes to the table:
library(dplyr)
HLA_typing_LIS %>% mutate(
across(
mA1Cd.recipient:mA2Cd.recipient,
~ HLA_prefix_add(., "HLA-A*")
)
)
Run the code above in your browser using DataLab