Returns a data frame with HLA-A, -B and -DRB1 typing
Arguments
- n
A positive 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'
Examples
hla_sample(n = 1000, replace = TRUE, origin = 'PT')
#> # A tibble: 1,000 × 6
#> A1 A2 B1 B2 DR1 DR2
#> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 2 32 14 51 1 15
#> 2 1 3 7 18 13 7
#> 3 26 31 14 51 3 4
#> 4 3 66 38 45 11 13
#> 5 2 29 14 37 16 12
#> 6 11 29 14 51 13 13
#> 7 24 32 15 27 4 8
#> 8 23 29 44 49 7 10
#> 9 2 32 44 51 15 4
#> 10 30 30 7 42 3 13
#> # ℹ 990 more rows