pairs(~bedroom+bathroom+parking+taxes+lotsize+location, data=x,gap=0.4,cex.labels=0.85) numericx=cbind(bedroom,bathroom,parking,taxes,lotsize) round(cor(numericxy,use = "complete.obs"), 4) pairs(sale~bedroom+bathroom+parking+taxes+lotsize,data=x,cex.labels=0.85) numericxy=cbind(sale,numericx) round(cor(numericxy), 4) I tried using above code to generate pairwise correlation map yet my location is labeled as M and T.Is there any ways I can fit location into this correlation map? Thanks
11 Answer
Try sth. like the following on your location column:
x$location_new <- as.numeric(type.convert(x$location)) and then run your code, but replace the old location column with this new one.
5
