How do i horizontally merge/combine 3 dataframes in R? I have three dataframes that have a word in one column, and the word count extracted from a text in the next, kind of like this:
word. count
1 hello. 6
2 test. 3
3 how. 8
4 are. 4
5 you. 1
and let's say dataframe 2:
word. count
1 hello. 6
2 test. 3
3 i. 3
4 am. 6
5 good. 2
how do i merge them like this:
word. df1. df2. total
1 hello. 6. 6. 12
2 test. 3 3 6
3 how. 8 0. 8
4 are. 4 0 4
5 you. 1 0 1
6 i 0 3 3
7 am 0 6 6
8 good 0 2 2
instead of 2 dataframes, i thus have 3
thanks!