How to stack 2 data frames with different column name and column number? I have 2 data frame below and want to keep all rows and columns. Put null values in column that column name are not identical in both df or columns are in one data frame only. I used rbind() and gave me error message like names not match ... Any suggestion? Thanks in advance!
df1<-data.frame(team=c('A', 'A', 'B'),
pos=c('X', 'F', 'F'),
points=c(128, 222, 129))
df1
df2<- data.frame(team=c('A', 'B', 'C'),
position=c('X', 'F', 'G'),
assists=c(224, 428, 466))
df2
df3 <- rbind(df1, df2)