otrecoding / OTrecod

R package for optimal transportation to recode variables
https://otrecoding.github.io/OTrecod
GNU General Public License v3.0
2 stars 1 forks source link

Erreur dans select_pred #8

Closed pnavaro closed 3 years ago

pnavaro commented 3 years ago
  > ### Example 1
  > #-----
  > # - From two overlayed databases: using the table simu_data
  > # - Searching for the best predictors of "Yb1"
  > # - Using the row database
  > # - The RF approaches are not required
  > #-----
  > 
  > data(simu_data)
  > test_DB1 = select_pred(simu_data,Y = "Yb1", Z = "Yb2", ID = 1, OUT = "Y",
  +                        quanti = c(3,8), nominal = c(1,4:5,7), ordinal = c(2,6),
  +                        thresh_cat = 0.30, thresh_num = 0.70, thresh_Y = 0.20,
  +                        RF = FALSE)
  The select_pred function is running. Please wait ... 
  Error in if (lab[2] == ".") lab.x <- setdiff(colnames(data), c(lab[1],  : 
    missing value where TRUE/FALSE needed
  Calls: select_pred
  Execution halted

1 error ✖ | 0 warnings ✔ | 0 notes ✔
Error: Error: R CMD check found ERRORs
Execution halted
Error: Process completed with exit code 1.
pnavaro commented 3 years ago

Merci Gregory