Skip to content

write text file as output without quotes

4 messages · Ravi S. Shankar, Sarah Goslee, Thomas Liebig +1 more

#
But did you try the help for write.table() ???

    write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ",
                 eol = "\n", na = "NA", dec = ".", row.names = TRUE,
                 col.names = TRUE, qmethod = c("escape", "double"))

Set quote=FALSE.

Sarah
On Tue, Apr 7, 2009 at 9:13 AM, Ravi S. Shankar <ravis at ambaresearch.com> wrote:

  
    
#
Hi,

you shouldn't call your variable try, see ?try for help on this function.

write.table has a paramter called quotes. just set this to FALSE to 
produce your wanted output:

t=data.frame(rep("a",5), rep("b",5))
write.table(t,"z:\\try.txt",row.names=F,col.names=F,sep="\t", quotes=FALSE)

regards,
Thomas Liebig


Ravi S. Shankar schrieb:

  
    
#
?write.table

write.table(..., quote=FALSE)
On Tue, Apr 7, 2009 at 9:13 AM, Ravi S. Shankar <ravis at ambaresearch.com> wrote: