Re: [R] Newbie:Export Data into Excel from R

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Sun, 02 Mar 2008 11:16:18 -0500 (EST)


R uses unix type slashes that is "/" rather than "\" even if you're using Windows

You probably need either to write
file ="c:/foo.csv" or escape the "\" thusly file =
> "c:\\foo.csv"

Either way should work. Personally find it easier to use '/".

>
> Hi,
>
> All i want is to export my list into c: drive and
> save it as csv file and
> manually import into Excel.
>
> I have the read the article but i am having issues
>
http://pbil.univ-lyon1.fr/library/base/html/write.table.html
>
>
> > excel<-write.table(probe_gene, file =
> "c:\foo.csv", sep = ",", col.names =
> > NA)
> Error in file(file, ifelse(append, "a", "w")) :
>
> unable to open connection
> In addition: Warning message:
> cannot open file 'c:\foo.csv', reason 'Invalid
> argument'
>
> any suggestions?
>
> thanks,
> chris
>
>
> --
> View this message in context:

>
http://www.nabble.com/Newbie%3AExport-Data-into-Excel-from-R-tp15788950p15788950.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.
>



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. Received on Sun 02 Mar 2008 - 16:21:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 02 Mar 2008 - 17:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive