Fixing bug in kruskal wallis test in compare_families.R when var. was not a factor