Skip to content

Remove serial number column in a Dataframe into CSV

2 messages · Rantony, R. Michael Weylandt

#
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.
#
On Thu, Sep 13, 2012 at 8:47 AM, Rantony <antony.akkara at ge.com> wrote:
Use row.names = FALSE to write.csv()

Michael.