Open JasonSills opened 3 years ago
Hi Jason,
From the error, we see that d4
has a value in its columns that is not a number. This isn't exactly an na
value; it could be an infinite number which happens when you tell R to divide by zero (i.e. 1 / 0 = Inf
).
I'm away from my laptop at the moment but my first instinct would be to drop any infinite records from d3
.
Cheers, Cristian
Thanks @cenuno, that worked.
Note that the argument use="everything" allows you to drop Inf and NaN values.
use
an optional character string giving a method for
computing covariances in the presence of missing
values. This must be (an abbreviation of) one of the
strings "everything", "all.obs", "complete.obs",
"na.or.complete", or "pairwise.complete.obs".
Hi,
I'm receiving this error with any variables I've tried in the correlation matrix:
Error in pairs.default(d4, upper.panel = panel.cor, lower.panel = panel.smooth) : non-numeric argument to 'pairs'
I selected the data with:
And used this to create the correlation plots:
However, no matter what data I choose for d3, I receive the same error.
Thanks,