Error exporting data into Excel file using R tool -
i imported .csv file excel using excel in first task.
now imported .csv r , exported r data excel file using command write.table(aviation,"d:\00projects\r\data\ aviation.xls",sep="\t")
the problem facing .csv converted excel using excel
event id investigation type accident number event date 20130710x74631 accident wpr13la321 07/10/2013 20130709x10955 accident wpr13la317 07/08/2013
this .csv converted excel using r tool. data has been shifted 1 column. not getting why ?
event.id investigation.type accident.number event.date 1 20130710x74631 accident wpr13la321 07/10/2013 2 20130709x10955 accident wpr13la317 07/08/2013
why eventid column data has been shifted , replaced 1 , 2 numbers.
check ?write.table
, try this:
write.table(aviation,"d:\00projects\r\data\ aviation.xls",sep="\t", row.names=false)
Comments
Post a Comment