is it possible to use leveneTest without refering to specific column using $. For example, I have a dataset with group in first column and numeric values in second column. I tried to do something like this, but it isn't working.
leveneTest(data[2] ~ data[1], data= data)
I checked that data$group and data[1] has diffrent types, so I think this is causing the problem, but I don't know how to fix this.