[R] Pairwise correlation
Nordlund, Dan (DSHS/RDA)
NordlDJ at dshs.wa.gov
Wed Nov 16 23:10:11 CET 2011
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of muzz56
> Sent: Wednesday, November 16, 2011 12:28 PM
> To: r-help at r-project.org
> Subject: Re: [R] Pairwise correlation
> Thanks Peter. I tried this after reading in the csv (read.csv) and
> converted the data to matrix (as.matrix). But when I tried the
> I keeping getting the error (x must be numeric) yet when I view the
> its numeric.
What does R tell you if you execute the following?
Just because the data looks like it is numeric when it prints doesn't mean it is.
Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204
More information about the R-help