Skip to content
Prev 244810 / 398528 Next

inconsistency with cor() - "x must be numeric"

Hi Fincher,

cor() only works on numeric arguments now (as of R 2.11 or 2.10 if
memory serves).  So, I would update your function to ensure that you
are only passing numeric data to cor() and the error should go away
(it will probably be easier on you if you can update your version of R
to the latest and greatest...quite a bit has changed since 2.8.1).  If
you post a reproducible example of your function, I'm sure we can help
update it.

Cheers,

Josh
On Mon, Dec 13, 2010 at 1:56 PM, Justin Fincher <fincher at cs.fsu.edu> wrote: