File: value_counts.Rd

package info (click to toggle)
apache-arrow 23.0.1-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 76,220 kB
  • sloc: cpp: 654,608; python: 70,522; ruby: 45,964; ansic: 18,742; sh: 7,365; makefile: 669; javascript: 125; xml: 41
file content (22 lines) | stat: -rw-r--r-- 534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compute.R
\name{value_counts}
\alias{value_counts}
\title{\code{table} for Arrow objects}
\usage{
value_counts(x)
}
\arguments{
\item{x}{\code{Array} or \code{ChunkedArray}}
}
\value{
A \code{StructArray} containing "values" (same type as \code{x}) and "counts"
\code{Int64}.
}
\description{
This function tabulates the values in the array and returns a table of counts.
}
\examples{
cyl_vals <- Array$create(mtcars$cyl)
counts <- value_counts(cyl_vals)
}