Learn R Programming

bigreadr (version 0.2.5)

fwrite2: Write a data frame to a text file

Description

Write a data frame to a text file

Usage

fwrite2(x, file = tempfile(), ..., quote = FALSE,
  nThread = getOption("bigreadr.nThread"))

Value

Input parameter file, invisibly.

Arguments

x

Data frame to write.

file

Path to the file that you want to write to. Defaults uses tempfile().

...

Other arguments to be passed to data.table::fwrite.

quote

Whether to quote strings (default is FALSE).

nThread

Number of threads to use. Default uses all threads minus one.

Examples

Run this code
tmp <- fwrite2(iris)
iris2 <- fread2(tmp)
all.equal(iris2, iris)  ## fread doesn't use factors

Run the code above in your browser using DataLab