Learn R Programming

caroline (version 0.9.9)

write.delim: Write a (tab) delimited text file.

Description

A simple wrapper for write.table with the same options as read.delim

Usage

write.delim(df, file, quote = FALSE, row.names = FALSE, sep = "\t", ...)

Value

A tab delimited text file

Arguments

df

a dataframe.

file

outputfile path.

quote

should elements of the dataframe be quoted for output.

row.names

should the output include rownames.

sep

the delimiter between fields.

...

other parameters passed to write.table.

See Also

Examples

Run this code
if (FALSE) {
x <- data.frame(a = I("a \" quote"), b = pi)
write.delim(x, file = "foo.tab")
}

Run the code above in your browser using DataLab