Re: [R] IMPORTING FILE FROM EXCEL

From: John Sorkin <jsorkin_at_grecc.umaryland.edu>
Date: Tue 04 Jul 2006 - 22:47:35 EST


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
Baltimore VA Medical Center GRECC,
University of Maryland School of Medicine Claude D. Pepper OAIC, University of Maryland Clinical Nutrition Research Unit, and Baltimore VA Center Stroke of Excellence

University of Maryland School of Medicine Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524

410-605-7119
jsorkin@grecc.umaryland.edu

>>> Rashmi Pant <rashmi6380@yahoo.co.uk> 07/04/06 2:22 AM >>>
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 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 Wed Jul 05 00:03:21 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 Wed 05 Jul 2006 - 02:15:37 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.