powered by
Tabulate the unique values in vector objects.
cl_tabulate(x)
A data frame with components:
the unique values.
an integer vector with the number of times each of the unique values occurs in x.
x
a vector.
data("Kinship82") tab <- cl_tabulate(Kinship82) ## The counts: tab$counts ## The most frequent partition: tab$values[[which.max(tab$counts)]]
Run the code above in your browser using DataLab