Displaying 1 result from an estimated 1 matches for "hoerdoepfl".
2003 Mar 06
4
write.table row.names and col.names (PR#2610)
....45.139)
When data.frames are written to a file using write.table and with row.names and
col.names, then the colnames are displaced by 1 with respect to column content.
Example:
> x = data.frame(
> obscht=c("chriesi", "bire"),
> gmues=c("chrut","hoerdoepfl"))
> rownames(x) = c("huet", "morn")
> write.table(x, file="test.txt", sep="\t", quote=F)
The table x now looks like:
> x
obscht gmues
huet chriesi chrut
morn bire hoerdoepfl
but the file is as follows, and the column names...