write.delim: Data output with tab delimiters

View source: R/write.delim.R

write.delimR Documentation

Data output with tab delimiters

Description

prints its required argument x (after converting it to a data frame if it is not one nor a matrix) to a file with tab delimiter without quotes and row names

Usage

write.delim(x, file = "", ...)

Arguments

x

the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame.

file

a character string naming a file

...

other arguments passed to write.table

Details

The function is equivalent to
write.table(x = x, file = file, quote = F, sep = "\t", row.names = F, ...)

See Also

write.table

Examples

### create and write data.frame
df<-data.frame(number=1:5, words=c("one", "two", "three", "four", "five"))
write.delim(df, "df.txt")

insysbio/dbs-package documentation built on Aug. 4, 2022, 2:11 p.m.