Error in match.fun(FUN)
<p>I have tried to find an answer to this but I have failed frequently. I have a dataframe with a column of strings. I want to count the number of characters in each entry of the column and replace the string column with the counts.</p>

<pre><code>data[,29]=apply(data[,29],nchar())

Out[2]: Error in match.fun(FUN): argument "FUN" is missing, with no default   
Error in match.fun(FUN): argument "FUN" is missing, with no default
</code></pre>