I'm trying to use "rcorr" function with my data , but the problem is that it works only with matrix. That's why I do convertation from data.frame to matrix:
my.data <- as.matrix(my.data)
and it comes to matrix, but when I type "typeof" it shows
typeof(my.data)
[1] "character"
So, "rcorr" gives me an error
Error in rcorr(my.data, type = "spearman") :
NA/NaN/Inf in foreign function call (arg 1)
In addition: Warning message:
In storage.mode(x) <- "double" : NAs introduced by coercion
Can anyone tell me what is wrong? Thank you!