Hi, If any body can help me regarding a basic problem using R? I am starting with R and I have problem in loading my file. File is on Desktop of my MAC and I use code as follows to access it /Users/username/Desktop/test.txt/ It always gives me Syntax error message. Thanks for your help -- View this message in context: http://www.nabble.com/Loading-file-in-MAC-Syntax-Error-tp25244312p25244312.html Sent from the R help mailing list archive at Nabble.com.
Hi, On Tue, Sep 1, 2009 at 4:40 PM, Awais77<khan_awais77 at yahoo.com> wrote:> > Hi, > If any body can help me regarding a basic problem using R? > I am starting with R and I have problem in loading my file. File is on > Desktop of my MAC and I use code as follows to access it > /Users/username/Desktop/test.txt/1. Where's your code? 2. Try to remove the trailing slash of your filename> It always gives me Syntax error message.What is the error message? -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
On Sep 1, 2009, at 4:40 PM, Awais77 wrote:> > Hi, > If any body can help me regarding a basic problem using R? > I am starting with R and I have problem in loading my file. File is on > Desktop of my MAC and I use code as follows to access it > /Users/username/Desktop/test.txt/Are you expecting R to read your mind? Where is a function to do something with that file? Read some more introductory material and also read the R Import/Export Manual. There is a treasure trove of contributed documentation at the r-project website.> > It always gives me Syntax error message. > > Thanks for your help >-- David Winsemius, MD Heritage Laboratories West Hartford, CT
Thanks for useful replies. It is working now. I was typing only read.table(/Users/username/Desktop/test.txt/) without surrounding the filename with quotes. It works when i use it as read.table('/Users/username/Desktop/test.txt'). Cheers Awais77 wrote:> > Hi, > If any body can help me regarding a basic problem using R? > I am starting with R and I have problem in loading my file. File is on > Desktop of my MAC and I use code as follows to access it > /Users/username/Desktop/test.txt/ > > It always gives me Syntax error message. > > Thanks for your help > > > > >-- View this message in context: http://www.nabble.com/Loading-file-in-MAC-Syntax-Error-tp25244312p25248604.html Sent from the R help mailing list archive at Nabble.com.