fwrite2 | R Documentation |
Write a data frame to a text file
fwrite2(x, file = tempfile(), ..., quote = FALSE, nThread = getOption("bigreadr.nThread"))
x |
Data frame to write. |
file |
Path to the file that you want to write to.
Defaults uses |
... |
Other arguments to be passed to data.table::fwrite. |
quote |
Whether to quote strings (default is |
nThread |
Number of threads to use. Default uses all threads minus one. |
Input parameter file
, invisibly.
tmp <- fwrite2(iris) iris2 <- fread2(tmp) all.equal(iris2, iris) ## fread doesn't use factors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.