summaryrefslogtreecommitdiffstats
path: root/src/arrow/r/man/value_counts.Rd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/arrow/r/man/value_counts.Rd24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/arrow/r/man/value_counts.Rd b/src/arrow/r/man/value_counts.Rd
new file mode 100644
index 000000000..7e64d1550
--- /dev/null
+++ b/src/arrow/r/man/value_counts.Rd
@@ -0,0 +1,24 @@
+% 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{
+\dontshow{if (arrow_available()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
+cyl_vals <- Array$create(mtcars$cyl)
+counts <- value_counts(cyl_vals)
+\dontshow{\}) # examplesIf}
+}