| btwrite | R Documentation |
A threaded C++ writer: each column is resolved to a plain C array on the R thread, then disjoint row ranges are formatted into private buffers and flushed in order.
btwrite(
x,
file,
delim = ",",
na = "NA",
col_names = TRUE,
quote = "\"",
digits = 15,
append = FALSE,
n_threads = bt_default_threads()
)
x |
A data.frame. |
file |
Output path. |
delim |
Field delimiter. |
na |
String to write for |
col_names |
Logical; write a header row? |
quote |
Quoting character; a field is quoted only if it contains the delimiter, the quote character, or a newline. |
digits |
Significant digits for double columns (passed to |
append |
Logical; append to |
n_threads |
Number of worker threads. |
file, invisibly.
p <- tempfile(fileext = ".csv")
btwrite(head(iris), p)
btread(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.