Hi, how are you?

You are welcome for my assistance. I'm sorry, but I made a mistake in my
previous post.

Is your .csv file in your working R directory?

If so, then 

H<-read.csv("Book.csv", header=TRUE, sep=",") 

should work. I am assuming that your data is comma separated and that
the names of the variables are in the first line (header).


If your .csv file is not in your working R directory, then 

H<-read.csv(file="c:/Book.csv", header=TRUE, sep=",") # replace
c:/Book.csv with the full file path

should work. 

Also check out 

?read.csv

for more information on read.csv, read.table, etc.

Irucka




<-----Original Message-----> 
>From: Hiep [via R] [ml-node+s789695n4666557h43@n4.nabble.com]
>Sent: 5/8/2013 3:26:38 AM
>To: iruckaE@mail2world.com
>Subject: Re: Tranfer data from exel into R
>
>Hi Irucka, thanks for help me 
>
>When I apply your way, I convert file exel into CSV, type:
H<-read.csv("Book.csv") 
>R show: 
>Error in file(file, "rt") : cannot open the connection 
>In addition: Warning message: 
>In file(file, "rt") : 
> cannot open file 'Book.csv': No such file or directory 
>
>I don't know why 
>
>
>
>
>If you reply to this email, your message will be added to the
discussion below:
>http://r.789695.n4.nabble.com/Tranfer-data-from-exel-into-R-tp4666452p4
666557.html 
>To unsubscribe from Tranfer data from exel into R, click here.
>NAML 


<span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br>  <font color=#999999>Unlimited Email Storage &#150; POP3 &#150; Calendar &#150; SMS &#150; Translator &#150; Much More!</font></font></span>



--
View this message in context: http://r.789695.n4.nabble.com/Tranfer-data-from-exel-into-R-tp4666452p4666590.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

