write_table: writing table convenience function

View source: R/io.R

write_tableR Documentation

writing table convenience function

Description

This is most useful for working with IRkernl in Jupyter notebooks. If a data.table is provided, then fwrite is used; otherwise, write.table is used.

Usage

write_table(
  df,
  file,
  sep = "\t",
  quote = FALSE,
  row.names = FALSE,
  verbose = TRUE,
  ...
)

Arguments

df

data.frame or data.table to write out

file

Output file path

sep

the field separator string. Values within each row of x are separated by this string

quote

a logical value (TRUE or FALSE) or a numeric vector. If TRUE, any character or factor columns will be surrounded by double quotes.

row.names

either a logical value indicating whether the row names of x are to be written along with x, or a character vector of row names to be written.

verbose

verbose messaging?

...

Passed to write.table (if data.frame) or fwrite (if data.table)


leylabmpi/LeyLabRMisc documentation built on Nov. 3, 2022, 3:45 p.m.