powered by
table
This function tabulates the values in the array and returns a table of counts.
value_counts(x)
Array or ChunkedArray
Array
ChunkedArray
A StructArray containing "values" (same type as x) and "counts" Int64.
StructArray
x
Int64
# NOT RUN { cyl_vals <- Array$create(mtcars$cyl) counts <- value_counts(cyl_vals) # }
Run the code above in your browser using DataLab