SyntaxFix
Write A Post
Hire A Developer
Questions
Tell the correlation to ignore the NAs with use argument, e.g.:
use
cor(data$price, data$exprice, use = "complete.obs")