count2 {pcutils} | R Documentation |
Like uniq -c
in shell to count a vector
Description
Like uniq -c
in shell to count a vector
Usage
count2(df)
Arguments
df |
two columns: first is type, second is number |
Value
two columns: first is type, second is number
Examples
count2(data.frame(group = c("A", "A", "B", "C", "C", "A"), value = c(2, 2, 2, 1, 3, 1)))
[Package pcutils version 0.2.6 Index]