R/getNamesProbes.R

getNamesProbes<-function(x, min.correlation=0.30)
 {
   selec<-x[,6]>=min.correlation
   lab<-x[selec,1]

   if (length(lab)==0)
    {
     warning("No variables selected. Change 'min.correlation' argument")
     ans<-NA
    }

   else
    {
     index<-c("\\.-1","\\.0","\\.1")
     for(i in 1:3)
      lab<-gsub(index[i],"",lab)
 
     cat(" ...", length(lab), "variables selected \n")
     ans<-unique(lab)
    }

   ans
 }

Try the gada package in your browser

Any scripts or data that you put into this service are public.

gada documentation built on May 2, 2019, 6:10 p.m.