R/return.ibd.val.R

return.ibd.val <-
function(col.dat){
   #expects a vector of zeros with at most one 1
   #returns the index of where the 1 is, or zero if 1
   # is not present in col.dat    
return(which.max(col.dat)*max(col.dat))
}

Try the IBDhaploRtools package in your browser

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

IBDhaploRtools documentation built on May 2, 2019, 6:48 p.m.