Counter: Calculate count of values in a list or vector

Description Usage Arguments Value Examples

View source: R/super_utils.R

Description

Handy function to calculate count of values given in a list or vector

Usage

1
Counter(data, sort = TRUE, decreasing = FALSE)

Arguments

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

Value

count of values in a list

Examples

1
2
d <- list(c('i','am','bad'),c('you','are','also','bad'))
counts <- Counter(d, sort=TRUE, decreasing=TRUE)

Example output

Loading required package: R6

superml documentation built on April 28, 2020, 9:05 a.m.