Learn R Programming

arrow (version 8.0.0)

value_counts: 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

Array or ChunkedArray

Value

A StructArray containing "values" (same type as x) and "counts" Int64.

Examples

Run this code
# NOT RUN {
cyl_vals <- Array$create(mtcars$cyl)
counts <- value_counts(cyl_vals)
# }

Run the code above in your browser using DataLab