[R] how to avoid writing index in write.table command

Tal Galili
Sun, 05 Feb 2012 11:19:49 -0000

write.table(..., row.names = FALSE)
(not row.name )



----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------




On Sun, Feb 5, 2012 at 9:53 AM, sagarnikam123
<sagarnikam123@gmail.com>wrote:

> how to avoid writing index of variable in write.table command,
> e.g. output--->
>
> index,character,state
> "1" "M" "2"
> "2" "K" "3"
> "3" "R" "1"
> "4" "E" "1"
> "5" "S" "1"
> "6" "H" "1"
> "7" "K" "1"
> "8" "H" "1"
> "9" "A" "1"
> "10" "E" "3"
> "11" "Q" "1"
>
> i tried col.name=FALSE & row.name=FALSE but it can't
>
>
> --
> View this message in context:
>
http://r.789695.n4.nabble.com/how-to-avoid-writing-index-in-write-table-command-tp4358557p4358557.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@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.
>

	[[alternative HTML version deleted]]