R/table2.R

Defines functions table2

table2 <- function(x, n=10){
 y <- sort(table(x), decreasing=TRUE)
 if(length(y) > n) y <- y[1:n]
 data.frame( total= y)
}
cstubben/trinotateR documentation built on May 14, 2019, 12:26 p.m.