It is used to determine that the means of two groups are equal or not by using t.test() function.