问题
I am trying to run a t-test to determine if a column in one df is significantly different from a column in another df. I have two dfs, "block 1" and "block 2". I have tried this code:
t.test(block1$Duration ~ block2$Duration,
paired=FALSE, var.equal=TRUE)
And I received this error message:
Error in t.test.formula(block1$Duration ~ block2$Duration, paired = FALSE, :
grouping factor must have exactly 2 levels
Any insight into what I'm doing wrong is appreciated!
来源:https://stackoverflow.com/questions/62045080/t-test-using-two-dfs-in-r