Skip to content
Prev 138998 / 398506 Next

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
+ skip=2,comment.char="")
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
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.