[R] Odp: write.table extra column

Petr PIKAL petr.pikal at precheza.cz
Mon Aug 15 09:42:00 CEST 2011


Hi

> In the following data.frame there are 6 columns, but 7 are written to
> the CSV file.
> 
> install.packages("pmlr")
> library(pmlr)
> data(enzymes)
> write.table(enzymes, sep=",", eol="\n",file="albert.csv")

see row.names option in ?write.table

Regards
Petr

> 
> ______________________________________________
> 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.



More information about the R-help mailing list