Why does the omega function work perfectly well on my data in R and returns results without any error messages and as soon as I try knitting to html or pdf, the following error message comes up:
Error in cor(m, use = "pairwise"): 'x' must be numeric
If something is wrong with my data structure, should I not receive this error message right away in my R console? the class-comand indicates the following data structure: [1] "tbl_df" "tbl" "data.frame" which should work (and does work before knitting)?