[R] write text file as output without quotes

jim holtman jholtman at gmail.com
Tue Apr 7 15:26:09 CEST 2009


?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?




More information about the R-help mailing list