I have these two data frames:
df1
|year |month | mort_rate
-----------------------
2019 April .18
2019 My .30
. . .
. . .
df2
|year |month | mort_rate
-----------------------
2020 April .18
2020 My .30
. . .
. . .
I would like to have a data frame like this
df3
|year |month | mort_rate | year | month | mort_rate
-----------------------------------------------------
2019 April .18 2020 April
2019 My .30 2020 May
. . .
. . .
I tried with this:
df3 <- cbind(df1, df2)
And I have this result:
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 9, 8
I know that the shape of my data frame is different but i would like to know if is possiple append two different data frames in a horizontally way.
Thanks