A great article about a script for T test in R.