Add text to one column of data.frame
<p>I would like to add a text only to one column.</p>

<p>I tried the following(here as an example):</p>

<pre><code>employee &lt;- c('John Doe','Peter Gynn','Jolie Hope')
addMe &lt;- c('test1','test2','test3')
salary &lt;- c(21000, 23400, 26800)
dat &lt;- data.frame(employee, salary, addMe)

dat[] &lt;- lapply(dat$addMe, function(x) paste(' Please delete this col!', x))
</code></pre>

<p>However, my result frame looks like the following:</p>

<pre><code>     employee                            salary                          addMe
1    Please delete this col! John Doe    Please delete this col! 21000   Please delete this col! test1
2    Please delete this col! Peter Gynn  Please delete this col! 23400   Please delete this col! test2
3    Please delete this col! Jolie Hope  Please delete this col! 26800   Please delete this col! test3
</code></pre>

<p>However I would like to have as a result:</p>

<pre><code>    employee      salary        addMe
1   John Doe      21000         Please delete this col! test1
2   Peter Gynn    23400         Please delete this col! test2
3   Jolie Hope    26800         Please delete this col! test3    
</code></pre>

<p>Any suggestions what I am doing wrong?</p>

<p>I appreciate your replies!</p>