export_data: Export data to a local text file

View source: R/export_data.R

export_dataR Documentation

Export data to a local text file

Description

Export data to a local text file

Usage

export_data(data, file = "", keep.units = is.unitted(data),
  comment.char = "#", sep = "\t", row.names = FALSE, quote = FALSE,
  ...)

Arguments

data

a data.frame or unitted_data.frame of data

file

the file to write to, as in write.table

keep.units

logical. if data has units, should these be written as a second line (just beneath the header) in the text file?

comment.char

a single character, or "", with which to prepend the line containing units information

sep

the character string used to separate columns, as in write.table

row.names

logical. whether to write row names to the file, as in write.table

quote

logical. whether to place quotes around every data entry, as in write.table

...

other arguments passed to write.table

See Also

write_unitted, write.table


USGS-R/powstreams documentation built on June 3, 2023, 8:58 a.m.