Watts-College / cpp-529-spr-2022

https://watts-college.github.io/cpp-529-spr-2022/
0 stars 2 forks source link

Variables with .x and .y #32

Closed dholford closed 2 years ago

dholford commented 2 years ago

Hello,

I keep running into a problem with the following line of code where I merge the dorling cartogram with the census data:

por <- merge( POR_dorling, d, by.x="GEOID", by.y="tractid", all.x=T )

I end up with some variables as .x and .y but other variables remain the same. I can't figure out why?

names(por)

output

This is then problematic in my dashboard because it's trying to match variables that don't exist since I have .x and .y attached to some of my variables.

Any help would be much appreciate. I had this issue previously and thought I traced everything back and fixed it, but then when I went to fix the mhv.00 issue I messed something up again and now I'm back to nothing working.