Confused! Two tailed t-test in r with equal variance I am a complete novice in this but just trying to have a go. I have a dataset which has the number of birds in my garden each day for one month in June 2020 and June 2021. I would like to see if there is a significant difference in my total. As far as I can work out, a two-tailed t-test with equal variances would work for this (however, please correct me if I'm wrong).
H0: there is no significant difference between the number of birds visiting my garden in June 2020 and June 2021.
Please could someone help to write the code for this in R?


In R you can simply do (thanks @COOLSerdash for the remark!)
t.test(Jun20, Jun21, var.equal = TRUE)

but there is a fundamental problem with this approach. Your variables are counts and, for the worse, with quite small numbers. They surely violate the normality assumption behind the t.test.
I would suggest going with a two-sample Poisson (or even better, a negative binomial) test in which you assume the two variables are independently Poisson-distributed with different parameter values.
