On Aug 5, 2013, at 10:14 AM, John Kane wrote: > No you don't need another format. read.table is the same on any operating > system. > > What is your actual command and what error messages if any? > > It may be a path problem. >
On a Mac you can click-hold-drag a file from the Finder window to the R console. The path and file name will be constructed. You just need to put quotes around it to construct an appropriate argument to the 'file= ' parameter. -- David. > John Kane > Kingston ON Canada > > >> -----Original Message----- >> From: clemence.germa...@gmail.com >> Sent: Mon, 5 Aug 2013 17:31:11 +0200 >> 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. > > ____________________________________________________________ > FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your > desktop! > > ______________________________________________ > 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. David Winsemius Alameda, CA, USA ______________________________________________ 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.