Returns a data frame with transplant candidates' HLA antibodies obtained according to theirs cPRA values and HLA typing.
Usage
Abs_df(candidates = candidates_df(n = 10), origin = "PT", n_seed = 3)
Arguments
- candidates
A dataframe with
ID
, HLA typing (column names:A1
,A2
,B1
,B2
,DR1
,DR2
) and cPRA value (column name:cPRA
), for a group of transplant candidates.- origin
A character value from options: 'API', 'AFA', 'CAU' and 'HIS'
- n_seed
a numeric seed that will be used for random number generation.
Examples
Abs_df(candidates = candidates_df(n=10), origin = 'PT', n_seed = 3)
#> Warning: package 'magrittr' was built under R version 4.1.3
#> # A tibble: 49 x 2
#> ID abs
#> <chr> <chr>
#> 1 K3 A25
#> 2 K3 DR4
#> 3 K8 A25
#> 4 K8 DR16
#> 5 K8 A33
#> 6 K8 B51
#> 7 K8 B48
#> 8 K8 DR16
#> 9 K8 B52
#> 10 K8 B55
#> # ... with 39 more rows