I've got two tables Table A and Table B.
Each has the lookup variable that is unique and doesn't contain any duplicate and I'm using the following code to join them
All_data <- left_join(Table_A, Table_B, by = c("ID_A" = "ID_B"))
When I run this it returns NA for multiple rows of Table B data points and I cannot figure out why.
I've done some spot checking in excel to confirm the ID's match across tables and it should be matching data but it just returns NA. I can also find all the data when using vlookup in excel (not the ideal long term solution as I need to replicate this multiple times but wanted to sense check the error).
The dataset is 5000 rows and I'm missing 1300 values from Table B when I run this. Any help or advice would be greatly appreciated.