Learn R Programming

HadoopStreaming (version 0.2)

hsWriteTable: Calls write.table with defaults sensible for Hadoop streaming.

Description

Calls write.table without row names or column names, without string quotes, and with tab as the default separator.

Usage

hsWriteTable(d, file = "", sep = "\t")

Arguments

d
A data frame
file
A connection, as taken by write.table()
sep
The column separator, defaults to a tab character

Value

No return value.

See Also

write.table

Examples

Run this code
d=data.frame(a=c('hi','yes','no'),b=c(1,2,3))
rownames(d) <- c('row1','row2','row3')
write.table(d)
hsWriteTable(d)

Run the code above in your browser using DataLab