Re: [R] R help needed

From: Simon Blomberg <s.blomberg1_at_uq.edu.au>
Date: Wed, 21 May 2008 17:02:25 +1000

Try:

dat <- read.table("/Users/kamleshkumar/Desktop/DS1.txt", header=TRUE)

Please also read the F documentation. The use of read.table is in "An Introduction to R" for example.

Simon.

On Wed, 2008-05-21 at 08:13 +0200, Kamlesh Kumar wrote:
> Dear Sir/Madam,
> I have tried to upload data in R but it showing some error
> in command window. It's should be noted that I am using Mac version of
> R. I am using Mac-text for writing my data. I am getting following
> message on the command window.
>
> > source("/Users/kamleshkumar/Desktop/DS1.txt")
> Error in source("/Users/kamleshkumar/Desktop/DS1.txt") :
> /Users/kamleshkumar/Desktop/DS1.txt: unexpected symbol at
> 1: x y
> I am attaching the the DS1.txt file also with this mail.
> Please go through it and guide me about this. I am waiting for a reply
> from your side. Thanking you.
> Yours Sincerely,
> Kamlesh Kumar
>
>
> ______________________________________________
> R-help_at_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.

-- 
Simon Blomberg, BSc (Hons), PhD, MAppStat. 
Lecturer and Consultant Statistician 
Faculty of Biological and Chemical Sciences 
The University of Queensland 
St. Lucia Queensland 4072 
Australia
Room 320 Goddard Building (8)
T: +61 7 3365 2506
http://www.uq.edu.au/~uqsblomb
email: S.Blomberg1_at_uq.edu.au

Policies:
1.  I will NOT analyse your data for you.
2.  Your deadline is your problem.

The combination of some data and an aching desire for 
an answer does not ensure that a reasonable answer can 
be extracted from a given body of data. - John Tukey.

______________________________________________
R-help_at_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.
Received on Wed 21 May 2008 - 07:05:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 21 May 2008 - 07:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive