grep not returning expected result in R
<p>I'm trying to get back a list of field names from a data.frame in R that have "mean()" within them.</p>

<p>However, as an example, if I run:</p>

<pre><code>grep("mean()", "fld_meanFreq()")
</code></pre>

<p>It returns an answer, i.e. 1, when I would expect 0.</p>

<p>When I do something similar on the list of field names, I'm getting field names containing both "mean()" and "meanFreq()".</p>

<p>How to fix please? I didn't see anything that dealt with this in a search on here.</p>