Hello,
I'm new to using R and am trying to run a two-sided t test.
I have successfully done this with data using whole numbers which I exported in from excel using readxl.
However, I am now trying to do it with data using numbers with decimal places.
I'm trying to run:
t.test(After,Before,mu=0,alt="two-sided",paired=T,conf.level=0.95)
But I'm getting:Error in x - y : non-numeric argument to binary operator
Can anyone help with how to fix this? I've tried converting the cells in my excel spreadsheet to number format and re-importing the data but I'm still getting the error code.
Any help would be much appreciated!