I need a two sample t.test between M and F.  The data are arranged in one
column, x.  Cant seem to figure how to run a two sample t.test.  Not really
sure what this output is giving me, but there should be no difference
between M and F in the example, but summary p-value indicates this.

How can I run a two sample t.test with data in one column.

x=rep(c(1,2,3,4),2)
y=rep(c("M","M","M","M","F","F","F","F"))
data<-cbind(x,y)
t.test(x,by=list(y))
Thank you ahead of time.
keith



-- 
M. Keith Cox, Ph.D.
Alaska NOAA Fisheries, National Marine Fisheries Service
Auke Bay Laboratories
17109 Pt. Lena Loop Rd.
Juneau, AK 99801
Keith.Cox@noaa.gov
marlinkcox@gmail.com
U.S. (907) 789-6603

	[[alternative HTML version deleted]]

