[R] IMPORTING FILE FROM EXCEL

2006-07-03 Thread Rashmi Pant
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') Warning message: file.show(): file 'C:Documents and SettingsstatsDesktopSUMIplasma2.txt' does not

Re: [R] IMPORTING FILE FROM EXCEL

2006-07-03 Thread Uwe Ligges
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 Tab delimited is not Excel. > > file.show('C:\Documents and Settings\stats\Desktop\SUMI\plasma2.txt') See R for Windows FAQ "R can't find my

Re: [R] IMPORTING FILE FROM EXCEL

2006-07-04 Thread Jacques VESLOT
if you don't need to import several dataset, you can directly change current directory from the file menu and move to your working directory instead of substuting all backslashes for slashes in import function argument. you can also copy your dataset in excel and do : > data1 <- read.delim("cl

Re: [R] IMPORTING FILE FROM EXCEL

2006-07-04 Thread Duncan Murdoch
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

Re: [R] IMPORTING FILE FROM EXCEL

2006-07-04 Thread Lanre Okusanya
try read.table('C:\\Documents and Settings\\stats\\Desktop\\SUMI\\plasma2.txt') for file.show, it is the same except note the slashes. On 7/4/06, Jacques VESLOT <[EMAIL PROTECTED]> wrote: > if you don't need to import several dataset, you can directly change current > directory from the file > me

Re: [R] IMPORTING FILE FROM EXCEL

2006-07-04 Thread John Sorkin
Rashmi, I suggest you store the file as a comma separated file (.CSV). You can import a .csv file using the read.csv function data<-read.csv("d:\\myfile.csvl") I suggest you look at the help file for read.csv, i.e. help(read.csv) John John Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics Ba

Re: [R] IMPORTING FILE FROM EXCEL

2006-07-04 Thread Peter Dalgaard
"John Sorkin" <[EMAIL PROTECTED]> writes: > Rashmi, > I suggest you store the file as a comma separated file (.CSV). You can > import a .csv file using the read.csv function > data<-read.csv("d:\\myfile.csvl") > I suggest you look at the help file for read.csv, i.e. > help(read.csv) Sorry, but th