R/findmax.R

Defines functions findmax

findmax<-function(probs,i){
 answer<-2
 for(j in 2:dim(probs)[2]){
  if(probs[i,j]>probs[i,answer]){answer<-j}
 }
 return(answer)
}

Try the rbrothers package in your browser

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

rbrothers documentation built on May 2, 2019, 4:29 p.m.