diff --git a/r/R/dplyr-funcs-agg.R b/r/R/dplyr-funcs-agg.R index b67af6fc01c..d1f2a2c3f57 100644 --- a/r/R/dplyr-funcs-agg.R +++ b/r/R/dplyr-funcs-agg.R @@ -204,6 +204,7 @@ find_arrow_mask <- function() { #' group_by(cyl) |> #' summarize(x = one(disp)) #' } +#' @keywords internal one <- function(...) { set_agg( fun = "one", diff --git a/r/man/one.Rd b/r/man/one.Rd index 5b672b5c190..654d7895951 100644 --- a/r/man/one.Rd +++ b/r/man/one.Rd @@ -10,10 +10,10 @@ one(...) \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. +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{ @@ -23,3 +23,4 @@ mtcars |> summarize(x = one(disp)) } } +\keyword{internal}