Skip to content
Prev 177356 / 398506 Next

Turning off warnings from cor.test

check option 'warn' in the on-line help file of ?options(), e.g., you 
can use something like this:

op <- options(warn = (-1)) # suppress warnings

cor.test(c(1,2,3,3,4,5), c(1,2,3,3,4,5),  method = "spearman")

options(op) # reset the default value, if you want


I hope it helps.

Best,
Dimitris
Daren Tan wrote: