writes a data frame with a header

fwrite_header(
  data,
  file,
  header,
  sep = ",",
  col_names = FALSE,
  append = FALSE,
  scipen = 20,
  ...
)

Arguments

data

data frame

file

output file name

header

string with the header

col_names

write column names

append

append to an existing file

...

Arguments passed on to tgutil::fwrite

Examples

if (FALSE) {
fwrite_header(mtcars, file = tempfile(), header = "# this is a header", sep = "\\t")
}