Skip to content

Commit

Permalink
Add examples for csv_convert_options
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnic committed Oct 7, 2023
1 parent 64e7736 commit b754956
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions r/R/csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,12 @@ TimestampParser$create <- function(format = NULL) {
#' (b) a character vector of [strptime][base::strptime()] parse strings; or
#' (c) a list of [TimestampParser] objects.
#'
#' @examples
#' tf <- tempfile()
#' on.exit(unlink(tf))
#' writeLines('x\n1\nNULL\n2\nNA', tf)
#' read_csv_arrow(tf, convert_options = csv_convert_options(null_values = c("", "NA", "NULL")))
#' open_csv_dataset(tf, convert_options = csv_convert_options(null_values = c("", "NA", "NULL")))
#' @export
csv_convert_options <- function(check_utf8 = TRUE,
null_values = c("", "NA"),
Expand Down
7 changes: 7 additions & 0 deletions r/man/csv_convert_options.Rd

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

0 comments on commit b754956

Please sign in to comment.