powered by
Write a data frame to a text file
fwrite2(x, file = tempfile(), ..., quote = FALSE, nThread = getOption("bigreadr.nThread"))
Input parameter file, invisibly.
file
Data frame to write.
Path to the file that you want to write to. Defaults uses tempfile().
tempfile()
Other arguments to be passed to data.table::fwrite.
Whether to quote strings (default is FALSE).
FALSE
Number of threads to use. Default uses all threads minus one.
tmp <- fwrite2(iris) iris2 <- fread2(tmp) all.equal(iris2, iris) ## fread doesn't use factors
Run the code above in your browser using DataLab