This is how my data looks like

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

1

1 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.