Change name of a cell in data frame in R : <p>I have a data set:</p>

<pre><code>           x y z
1      apple a 4
2     orange d 3
3     banana b 2
4 strawberry c 1
</code></pre>

<p>How can I change the name "banana" to "grape"? I want to get:</p>

<pre><code>           x y z
1      apple a 4
2     orange d 3
3     grape  b 2
4 strawberry c 1
</code></pre>

<p>Reproducible code:</p>

<pre><code>example&lt;-data.frame( x = c("apple", "orange", "banana", "strawberry"), y = c("a", "d", "b", "c"), z = c(4:1) )
</code></pre>
