diff --git a/R/PLSDA_class.R b/R/PLSDA_class.R index 6044412..425e784 100644 --- a/R/PLSDA_class.R +++ b/R/PLSDA_class.R @@ -148,7 +148,7 @@ prob=function(x,yhat,ytrue) if (length(t)>1) { # multiple cross over points so choose the one closest to 0 - t=t[which.min(abs(t),)] + t=t[which.min(abs(t))] } if (length(t)==0 ) {