Re: [R] Two sample t-test

From: michael watson (IAH-C) <michael.watson_at_bbsrc.ac.uk>
Date: Sun, 09 Mar 2008 13:47:18 +0000

Why are you using "skip=2"?

Try:

read.csv(""c://test.csv",header="T",eomment.char="")

-----Original Message-----
From: r-help-bounces_at_r-project.org on behalf of Claire_6700 Sent: Sun 09/03/2008 12:55 PM
To: r-help_at_r-project.org
Subject: [R] Two sample t-test  

Hi,

I want to perform t-test in R for each individual car. Here is what i have. Is there a way i can test each car?

The original table (test.csv)

Car	Tester2	Tester2	Controller1	Controller2
Audi	0.56	0.9	0.5	0.9
Toyota	0.2	0.9	0.9	0.2
Honda	0.5	0.9	0.1	0.5
BMW	0.2	0.3	0.5	0.7


> cars<-read.table("c://test.csv",header=T,sep=",",
+ skip=2,comment.char="")
> cars

  Toyota X0.2 X0.9 X0.9.1 X0.2.1
1  Honda  0.5  0.9    0.1    0.5
2    BMW  0.2  0.3    0.5    0.7

> head(cars)
  Toyota X0.2 X0.9 X0.9.1 X0.2.1
1  Honda  0.5  0.9    0.1    0.5
2    BMW  0.2  0.3    0.5    0.7

why is R only showing two cars when i type head?

many thanks.

-- 
View this message in context: http://www.nabble.com/Two-sample-t-test-tp15925876p15925876.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

______________________________________________
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 Sun 09 Mar 2008 - 13:58:28 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 Sun 09 Mar 2008 - 16:30:20 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