Skip to content
Back to formatted view

Raw Message

Message-ID: <644e1f320904070626h54b14e6fw1403a9ac4bde37e1@mail.gmail.com>
Date: 2009-04-07T13:26:09Z
From: jim holtman
Subject: write text file as output without quotes
In-Reply-To: <B8948310FD4828478CBCC2093E5096B71AB771@BAN-MAILSRV02.Amba.com>

?write.table

write.table(..., quote=FALSE)

On Tue, Apr 7, 2009 at 9:13 AM, Ravi S. Shankar <ravis at ambaresearch.com> wrote:
> Hi R,
>
>
>
> When I use the below to write the text file
>
> try=data.frame(rep("a",5), rep("b",5))
>
> write.table(try,"z:\\try.txt",row.names=F,col.names=F,sep="\t")
>
>
>
> the output contains two columns with quotes! Is there a way to write
> without quotes?
>
> I tried
>
> try[,1]=noquote(try[,1])
>
> try[,2]=noquote(try[,2])
>
>
>
> Thank you,
>
> Regards,
>
> Ravi Shankar
>
>
>
>
>
> This e-mail may contain confidential and/or privileged i...{{dropped:13}}
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?