Test mate pairing equation against test dataframe

error_check_P_test(
  equation = "eq9",
  P.test.df = error_check_build_Ptest_df(),
  print.i = FALSE
)

Arguments

equation

Mate pairing equation to test.

P.test.df

A dataframe

print.i

print iteration number for debugging

Examples

P.test.df <- error_check_build_Ptest_df()
dim(P.test.df)
#> [1] 6400   14

error_check_P_test(equation = "eq9",P.test.df=P.test.df[10,])
#>    mg mp fg fp K.bc K.bk P.cgg P.cgp P.cpg P.cpp P.kgg P.kgp P.kpg P.kpp
#> 10 31 61  1  1    1    1     1    NA    NA    NA    NA    NA    NA    NA
error_check_P_test(equation = "eq10",P.test.df=P.test.df[10,])
#>    mg mp fg fp K.bc K.bk P.cgg P.cgp P.cpg P.cpp P.kgg P.kgp P.kpg P.kpp
#> 10 31 61  1  1    1    1    NA     0    NA    NA    NA    NA    NA    NA