t.test(rnorm(10,14.2,0),rnorm(10,12.59,1.63))
t.test(rnorm(10,12.59,1.63),mu=14.2)
One Sample t-test
data:rnorm(10,12.59,1.63)
t = -3.5399,df = 9,p-value = 0.006316
alternative hypothesis:true mean is not equal to 14.2
95 percent confidence interval:
12.32984 13.78816
sample estimates:
mean of x
13.059