I am looking for a way to bind together the columns of several dataframes even if there is a mismatch in the number of rows. I have tried utilizing "cbind" and "merge" to get my data in a wide format as opposed to dplyr's preference to tall data.
For a simple example, lets say I have 2 dataframes: 1 with 4 rows, one with 5. I want to bind on "Team", and any time there is no match, fill it with either a blank or NA.
Example dataframes:
df1
Team Season Pts
STL 2019 99
CHI 2019 84
DET 2019 74
NYR 2019 78
df2
Team Season Pts
STL 2018 94
CHI 2018 76
MIN 2018 101
DET 2018 73
BOS 2018 112
Desired output would be something like:
Team Season Points Team.1 Season.1 Points.1
STL 2019 99 STL 2018 94
CHI 2019 84 CHI 2018 76
DET 2019 74 DET 2018 73
NYR 2019 78 NA NA NA
MIN 2018 101 NA NA NA
BOS NA NA BOS 2019 112