Performs one or two samples t-test

rquery.t.test(x, y = NULL, paired = FALSE, graph = TRUE, ...)

Arguments

x

a (non-empty) numeric vector of data values.

y

an optional (non-empty) numeric vector of data values

paired

: if TRUE, paired t-test is performed

graph

: if TRUE, the distribution of the data is shown for the inspection of normality

...

: further arguments to be passed to the built-in t.test() R function

Value

Returns t-test results

Details

1. shapiro.test is used to check normality 2. F-test is performed to check equality of variances If the variances are different, then Welch t-test is used