R/sortPopData.R

sortPopData<-function(segments,nchr,npop)
{

  ans<-list()
  for(pop in 1:npop)
  {
    rr1<-list() 
    for(chr in 1:nchr) 
    { 
      rr1[[chr]]<-segments[[chr]]
    }
    
    ans[[pop]]<-rr1
   }
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.