[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/../api/../../cpp/../r/reference/value_counts.html [Back]  [Original]

table for Arrow objects value_counts Arrow R Package Skip to contents
Arrow R Package 25.0.1

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

cyl_vals <- Array$create(mtcars$cyl)
counts <- value_counts(cyl_vals)

On this page


Web Proxy Viewer  |  New URL  |  Original Page