numFields {HLAtools} | R Documentation |
Identify the Number of Fields in a Colon-Delimited Allele Name
Description
Returns the number of fields in a colon-delimited HLA allele name. A value of 1 is returned for digit-delimited HLA allele names.
Usage
numFields(allele)
Arguments
allele |
A character string of a colon-delimited HLA allele name. |
Value
A numeric value describing the number of fields in the allele name.
Examples
numFields("HLA-A*01:01")
numFields("DRB1*04:03:01")
numFields("13:02:01:01")
[Package HLAtools version 1.1.1 Index]