Re: [R] IMPORTING FILE FROM EXCEL

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Tue 04 Jul 2006 - 20:28:51 EST

On 7/4/2006 2:22 AM, Rashmi Pant wrote:
> Hi
> I am a beginner with R.
> I have been trying to import a tab delimited excel file but i get the following error message
> > file.show('C:\Documents and Settings\stats\Desktop\SUMI\plasma2.txt')

R treats backslashes ("\") as escape characters. It's easier just to use forward slashes, i.e. c:/Documents..., and easiest of all is to use the function file.choose() which pops up a file selection dialog.

Duncan Murdoch

> Warning message:
> file.show(): file 'C:Documents and SettingsstatsDesktopSUMIplasma2.txt' does not exist
> I have understood the programming part but i cannot go ahead unless i have imported the file. I have consulted the R-help archive without success.
> Any help will be appreciated
> Thanks in advance
>
>
> ---------------------------------
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 04 20:34:19 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 04 Jul 2006 - 22:15:29 EST.

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