t-test with two samples

We really need some sample data and your complete code.

See

Also a handy way to supply sample data is to use the dput() function. See ?dput. If you have a very large data set then something like head(dput(myfile), 100) will likely supply enough data for us to work with.