I have two data and I want to subset data1 based on another data2's column value and merge, my data1 looks like:
ID address phone
123 .... .....
456 .... .....
789 .... .....
101 .... .....
and data2 looks like:
ID City Zipcode if_travel
123 .... .... ....
456 .... .... ....
I hope to get data like:
ID address phone City Zipcode if_travel
123 .... ..... .... .... ....
456 .... ..... .... .... ....
789 .... ..... NA NA NA
101 .... ..... NA NA NA
The process seems to alike left-join in python, yet is there any way to do the same process in bash command? Thanks!