Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions r/R/compute.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ call_function <- function(function_name, ..., args = list(...), options = empty_
#' @param ... Additional parameters passed to `grep()`
#' @return A character vector of available Arrow C++ function names
#' @examplesIf arrow_available()
#' list_compute_functions()
#' list_compute_functions(pattern = "^UTF8", ignore.case = TRUE)
#' list_compute_functions(pattern = "^is", invert = TRUE)
#' available_funcs <- list_compute_functions()
#' utf8_funcs <- list_compute_functions(pattern = "^UTF8", ignore.case = TRUE)
#' @export
list_compute_functions <- function(pattern = NULL, ...) {
funcs <- compute__GetFunctionNames()
Expand Down Expand Up @@ -284,7 +283,7 @@ is_in <- function(x, table, ...) {
#' `Int64`.
#' @examplesIf arrow_available()
#' cyl_vals <- Array$create(mtcars$cyl)
#' value_counts(cyl_vals)
#' counts <- value_counts(cyl_vals)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just let this print except that the StructArray print method is ugly.

#' @export
value_counts <- function(x) {
call_function("value_counts", x)
Expand Down
2 changes: 1 addition & 1 deletion r/R/dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
#'
#' # View files - you can see the partitioning means that files have been written
#' # to folders based on Month/Day values
#' list.files(tf3, recursive = TRUE)
#' tf3_files <- list.files(tf3, recursive = TRUE)
#'
#' # With no partitioning specified, dataset contains all files but doesn't include
#' # directory names as field names
Expand Down
3 changes: 1 addition & 2 deletions r/R/ipc_stream.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ write_ipc_stream <- function(x, sink, ...) {
#' @return A `raw` vector containing the bytes of the IPC serialized data.
#' @examplesIf arrow_available()
#' # The default format is "stream"
#' write_to_raw(mtcars)
#' write_to_raw(mtcars, format = "file")
#' mtcars_raw <- write_to_raw(mtcars)
#' @export
write_to_raw <- function(x, format = c("stream", "file")) {
sink <- BufferOutputStream$create()
Expand Down
5 changes: 2 additions & 3 deletions r/man/list_compute_functions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion r/man/open_dataset.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion r/man/value_counts.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions r/man/write_to_raw.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.