R/freq.all.R

`freq.all` <-
function(hap){

 nb.marq 	= 	length(hap[1,])
 freq.a 	= 	list()

    for(i in 1:nb.marq)

    {       
        sy          = tabulate(na.omit(hap[,i]))     
        toty        = sum(sy)
	freqy       = sy/toty
        freq.a[[i]] = freqy

    }


 freq.a


 }

Try the HAPim package in your browser

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

HAPim documentation built on May 2, 2019, 12:10 p.m.