R/len.empty.vec.R

len.empty.vec <- function(vec, empty) {
# Helper function, computes the number of 'empty' values in a vector vec.
# Intended for remove.genos(). 
# vec: any vector (probably passed by apply() function)
# empty: the symbol appearing in the vector that is considered as an empty value.
#        (could be 0, "0/0", "NA", "1 1", etc)

return(length(which(vec == empty)))

}

Try the genMOSSplus package in your browser

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

genMOSSplus documentation built on May 1, 2019, 10:31 p.m.