Here is my problem. I want to put the "AFINN" score related to a column of single words into another column Here my dataset
head(service_df)
# A tibble: 6 x 3
word1 word2 n
<chr> <chr> <int>
1 service delivery 8574
2 service covid 1163
3 service lockdown 541
4 service worker 389
5 service provider 370
6 service online 236
I want to obtain the score related to the column "word2" in order to have something like this
word1 word2 n AFINN_word_2
<chr> <chr> <int>
1 service delivery 8574 -1
2 service covid 1163 0
3 service lockdown 541 0
4 service worker 389 0.3
5 service provider 370 0.1
6 service online 236 1
(I just put random values under AFINN_word_2)
Thanks Everyone!