specify is the first row containts variables names by h=T (header=T), and the column separator symbol. In Excel save your file as Text File with tab separator and then sep="\t"
 
Justin BEM
Elève Ingénieur Statisticien Economiste
BP 294 Yaoundé.
Tél (00237)9597295.



----- Message d'origine ----
De : amna khan <amnakhan493@gmail.com>
À : R-help@stat.math.ethz.ch
Envoyé le : Mardi, 7 Novembre 2006, 6h44mn 48s
Objet : [R] R help


*I am a very new user of R. I've spent several hours trying to import
data, I am successful in importing data from Excel. After having the data on
R console, I am not understanding how to make a file for imported data,so I
feel okay asking the list for help. *
*I have used save workspace option from file menu. but when i have to use
that saved workspace in extReme toolkit using read data option from file
menu I am getting the following messages*

**
*Error in read.table("C:/Program Files/R/R-2.4.0/Rainfall Data/lahore",  :
        more columns than column names
In addition: Warning message:
incomplete final line found by readTableHeader on 'C:/Program Files/R/R-
2.4.0/Rainfall Data/lahore'
Error in parse(file, n = -1, NULL, "?") : syntax error*
**
*I request you to please guide to me.*
*Regards

*AMINA SHAHZADI
Department of Statistics
GC University Lahore, Pakistan.
Email:
amnakhan493@gmail.com
amna_989@hotmail.com
amna_989@yahoo.com

    [[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
and provide commented, minimal, self-contained, reproducible code.


	

	
		
___________________________________________________________________________ 

 interface révolutionnaire.

	[[alternative HTML version deleted]]

