value_counts {arrow} | R Documentation |
table
for Arrow objects
Description
This function tabulates the values in the array and returns a table of counts.
Usage
value_counts(x)
Arguments
x |
|
Value
A StructArray
containing "values" (same type as x
) and "counts"
Int64
.
Examples
cyl_vals <- Array$create(mtcars$cyl)
counts <- value_counts(cyl_vals)
[Package arrow version 16.1.0 Index]