Hi,
i have an small doubt.
How can we remove serial-number column while writing a dataframe in to a csv
file ?
for eg:-
write.csv(MyDataFrame,"c:/MyData.csv")
name place
----------- -----------
1 antony uk
2 john usa
3 arjun ind
here, in the csv file, serial number column is coming extra on the left-end
side.
i want to remove that . How it is possible, while writing into a csv file ?
- Thanks in advance
Antony
--
View this message in context: http://r.789695.n4.nabble.com/Remove-serial-number-column-in-a-Dataframe-into-CSV-tp4642987.html
Sent from the R help mailing list archive at Nabble.com.
Remove serial number column in a Dataframe into CSV
2 messages · Rantony, R. Michael Weylandt
On Thu, Sep 13, 2012 at 8:47 AM, Rantony <antony.akkara at ge.com> wrote:
Hi,
i have an small doubt.
How can we remove serial-number column while writing a dataframe in to a csv
file ?
for eg:-
write.csv(MyDataFrame,"c:/MyData.csv")
name place
----------- -----------
1 antony uk
2 john usa
3 arjun ind
here, in the csv file, serial number column is coming extra on the left-end side. i want to remove that . How it is possible, while writing into a csv file ?
Use row.names = FALSE to write.csv() Michael.
- Thanks in advance Antony -- View this message in context: http://r.789695.n4.nabble.com/Remove-serial-number-column-in-a-Dataframe-into-CSV-tp4642987.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ 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.