I use read.table(file.choose () and that it's work thanks Le 5 août 2013 à 19:05, David Carlson a écrit :
> You should copy the exact command you used, but it appears > that your working directory does not contain the file. Make > sure you are in the correct directory with > > getwd() > > then change to the correct directory with > > setwd("directory where data1.txt is located") > > or select the file interactively with > > read.table(file.choose(), . . . .) > > ------------------------------------- > David L Carlson > Associate Professor of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > -----Original Message----- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Clemence > Germaine > Sent: Monday, August 5, 2013 10:31 AM > To: r-help@r-project.org > Subject: [R] can't read a file > > Hi > > It's the first time I use R on mac, before I used on Windows, > so I can't have my data when I have the function : read.table, > my file is maned : data1.txt > Do I use another format for my file? > > And when I trie list.file I have this answer : character(0) > but I know where my file is on my computer. > > If anybody can help me? > > Thanks > > Clémence > ______________________________________________ > R-help@r-project.org 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. > ______________________________________________ R-help@r-project.org 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.