#rstats Pro-tip: If your join isn't working and you're sure it's correct, verify that your data types match on each side of the join key. Trying to join a character vector to a factor vector causes a bad time.
Comments
Log in with your Bluesky account to leave a comment
I had a similar problem with a join caused by webscraped data. One dataframe had weird characters as a result of said webscraping. I had two levels for the "same" value. Chaos ensued
My wife asked me for some help debugging a join of some precinct level election data and I'm like 1) check for trailing whitespace, if that fails 2) print the join ID in each data frame for an observation that should match but doesn't. Turns out 2) revealed the issue
Comments