R/removezerospecies.R

Defines functions `removezerospecies`

`removezerospecies` <-
function(x) {
    freq <- apply(x,2,sum)
    subs <- freq>0
    x <- x[,subs,drop=F]
    return(x)
}

Try the BiodiversityR package in your browser

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

BiodiversityR documentation built on June 22, 2024, 11:57 a.m.