| one2one_f {Rtapas} | R Documentation |
Maximum number of unique one-to-one association over a number of runs
Description
For a binary matrix of host-symbiont associations, it finds the maximum
number of host-symbiont pairs, n, for which one-to-one unique
associations can be chosen.
Usage
one2one_f(
HS,
reps = 10000,
interval = NULL,
strat = "sequential",
cl = 1,
plot = TRUE
)
Arguments
HS |
Host-symbiont association matrix. |
reps |
Number of runs to evaluate. |
interval |
Vector with the minimum and maximum |
strat |
Flag indicating whether execution is to be |
cl |
Number of cluster to be used for parallel computing.
|
plot |
Default is |
Value
The maximum number of unique one-to-one associations
(n).
NOTE
It can be used to decide the best n prior to application of
max_cong().
Examples
N = 10 #for the example, we recommend 1e+4 value
data(amph_trem)
n <- one2one_f(am_matrix, reps = N, interval = c(2, 10), plot = TRUE)