R/genotype.G.R

Defines functions genotype

Documented in genotype

genotype<-function(genoG){

npop<-ncol(genoG)/2
gent<-array(NA,c(nrow(genoG),npop))
for(i in 1:npop){
 gent[,i]<-rowSums(genoG[,c(2*i-1,2*i)])
}
gent

}

Try the IFP package in your browser

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

IFP documentation built on Nov. 26, 2020, 1:07 a.m.