How to perform operations on rows of Dataframes which contain elements linked to a value in another Dataframe in R?
<p>I have two dataframes, each of them have a column that contains several words. However the order and the size of this two column is different.
The first database is bigger and looks like this:</p>

<pre><code>words response  time.response
WORD1   s           434
WORD2   s           567
WORD3   l           765 
WORD2   s           235
WORD4   l           854
WORD3   l           521 
...
</code></pre>

<p>as you can see some words occurs several times
the second dataframe is smaller and looks like this:</p>

<pre><code>words  Assoc.  Dist
WORD1    4       1
WORD2    7       0
WORD3    6       1
WORD4    2       1
...
</code></pre>

<p>How can I associate the value of the second dataframe to the words of the first one, knowing that they are the same?</p>

<p>I expect something like this:</p>

<pre><code>words response  time.response  Assoc   Dist
WORD1   s           434          4      1
WORD2   s           567          7      0
WORD3   l           765          6      1
WORD2   s           235          7      0
WORD4   l           854          2      1
WORD3   l           521          6      1
</code></pre>

<p>...</p>