File: one.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 (26 lines) | stat: -rw-r--r-- 652 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
23
24
25
26
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dplyr-funcs-agg.R
\name{one}
\alias{one}
\title{Get one value from each group}
\usage{
one(...)
}
\arguments{
\item{...}{Unquoted column name to pull values from.}
}
\description{
Returns one arbitrary value from the input for each group. The function is
biased towards non-null values: if there is at least one non-null value for a
certain group, that value is returned, and only if all the values are null
for the group will the function return null.
}
\examples{
\dontrun{
mtcars |>
  arrow_table() |>
  group_by(cyl) |>
  summarize(x = one(disp))
}
}
\keyword{internal}