I have CSV (mydata) and shapefile (nc). I want make such as

merged = left_join(nc, mydata, by= nc."NAME", by mydata."Country")

How make it?

enter image description here enter image description here

  • 3
    Try merged = dplyr::left_join(nc, mydata, by= c("NAME"="Country")) – Kazuhito May 26 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.