Skip to content
Prev 299699 / 398503 Next

HELP me please with import of csv to R

Hi,
On Tue, Jul 10, 2012 at 12:48 PM, F86 <faradj.g at gmail.com> wrote:
So that command does work?
Then you need the above command, not what you type here:

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

But note that if sep=";" then you don't have a csv file and should
properly use read.table() instead.
That error means that R can't find the file where you told it to look.
Specifying the full and complete path as in your first example should
work.

If you're having problems with paths (which are a Mac issue and not at
all an R issue), you could also try

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

I think that file.choose() should work on Mac.

The Intro to R document that came with R might also be of use.

Sarah