Counter | R Documentation |
Handy function to calculate count of values given in a list or vector
Counter(data, sort = TRUE, decreasing = FALSE)
data |
should be a vector or list of input values |
sort |
a logical value, to sort the result or not |
decreasing |
a logical value, the order of sorting to be followed |
count of values in a list
d <- list(c('i','am','bad'),c('you','are','also','bad'))
counts <- Counter(d, sort=TRUE, decreasing=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.