The following error is put out when I want to perform a paired t-test:
t.test(materix_first_timepoint[,1], materix_second_timepoint[0,1], paired=TRUE)
Error in complete.cases(x, y) : not all arguments have the same length
This is the str of my matrices:
str(materix_first_timepoint)
num [1:35, 1:4] 23.28 12 3.81 28.63 10.25 ...
- attr(*, "dimnames")=List of 2
..$ : NULL
..$ : chr [1:4] "1 hour" "2 hours" "3 hours" "4 hours"
str(materix_second_timepoint)
num [1:35, 1:4] 13.9 25.5 17.8 18.9 22.7 ...
- attr(*, "dimnames")=List of 2
..$ : NULL
..$ : chr [1:4] "1 hour" "2 hours" "3 hours" "4 hours"
If I perform a t-test with paired=FALSE
it works. I do not understand what going wrong.