View source: R/hla_trimnames.R
hla_trimnames | R Documentation |
Given a vector of HLA allele names with the format "A*01:01:01:01", returns
all or unique allele names at the digit resolution specified by
fields
.
hla_trimnames(alleles_vec, fields = 3)
alleles_vec |
character string. Vector of allele names. |
fields |
integer. Number of fields to trim names to. |
All or unique HLA alleles trimmed names.
hla_trimnames(c("A*01:01:01:01", "A*02:01:01:01"), fields = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.