I am new to r code so getting some issue here is the code
%r library(sparkr)
library(arulesViz)
test1 <- "select t.result from usertest l join userlab t on t.uid=l.uid where t.result is not null;"
test2 <- "select t.result from usertest2 l join userlab2 t on t.uid=l.uid where t.result is not null"
It seems you have some typos in the above command. I assume t1n should be tqn and the test is named wilcox.test. If those are correct in your code, please post the results of running
Let me explain why I want to know the result of class(tqn) and class(tmn). The wlicox.test() is complaining that one or the other is not numeric. The class() function will reveal whether either of them is numeric. It may be that the as.numeric() function is not doing what you expect.