table2 <- function(x, n=10){ y <- sort(table(x), decreasing=TRUE) if(length(y) > n) y <- y[1:n] data.frame( total= y) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.