price 1 NA
exprice NA 1
1s are because everything is perfectly correlated with itself, and the
NAs are because there are
NAs in your variables.
We will have to specify how you want R to compute the correlation when there are missing values, because the default is to only compute a coefficient with complete information.
We can change this behavior with the
use argument to
?cor for details.