R/meanDeg.R

Defines functions meanDeg

Documented in meanDeg

meanDeg <- function(comp, degBait, sampled){

        
    if (length(sampled) != 0){
        popMeanDeg <- (length(comp)*(sum(unlist(degBait))))/(2*length(sampled))
    }


    else{
        popMeanDeg <- NA
    }
    
}

Try the ScISI package in your browser

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

ScISI documentation built on Nov. 8, 2020, 5:48 p.m.