[R] Need HELP: how find and use a csv file?

Sarah Goslee sarah.goslee at gmail.com
Tue Jul 10 21:54:57 CEST 2012

You don't actually have to post more than once. Really.

skatter <- read.table(file.choose(), header=TRUE, sep=";")


skatter <- read.table(""/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";")

or whatever the actual path to the file is.

As a new user of R, you should read the Introduction to R that came
with R, and also the R-help posting guide. Both are full of useful


On Tue, Jul 10, 2012 at 2:11 PM, Faradj Koliev <faradj.g at gmail.com> wrote:
> Hey,
> I am having some problems with importing a csv file into R and then saving it for analyzing.
> I got a csv file ( skater.csv) which i could read by typing:    read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";")
> However, when i enter:    skatter.csv<-read.csv("skatter.csv", header=TRUE) i get this message:
> Error in file(file, "rt") : cannot open the connection
> In addition: Warning message:
> In file(file, "rt") :
> I have tried with:   skatter.csv<-file.choose() and other codes to find the file but it does not work.
> Please help me fix this problem, i have been sitting with this one in 4 hours..
> What i need is to import this file and analyze it using for example histogram.
> I have Mac(update) and the file is saved in csv file... and I'm quite new user of R.

Sarah Goslee

More information about the R-help mailing list