Skip to contents

Returns a data frame with HLA-A, -B, -C and -DRB1 typing

Usage

hla_sample(n, replace, origin)

Arguments

n

An integer to define the number of rows

replace

A logical value for sampling with replacement

origin

A character value from options: 'PT', 'API', 'AFA', 'CAU' and 'HIS'

Value

A data frame

Examples

hla_sample(n = 1000, replace = TRUE, origin = 'PT')
#> # A tibble: 1,000 x 6
#>       A1    A2    B1    B2   DR1   DR2
#>    <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#>  1     2    24    14    44     3    13
#>  2     1     3    35    57     1     7
#>  3     1    29    51    57    11     7
#>  4     2     2    14    41     3     3
#>  5     2    68    44    51     1    10
#>  6     2     3     7    15    13     7
#>  7     3     3    18    35    13     7
#>  8     2    68    40    57     1     3
#>  9     3    24    50    51     3     4
#> 10    11    11    44    49    11    13
#> # ... with 990 more rows