Replacing multiple values in a column of a data frame based on condition
<p>here is data set of weight</p>

<p><a href="https://i.stack.imgur.com/JzoS5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JzoS5.jpg" alt="enter image description here"></a></p>

<p>I have to replace values in weight column based on following conditon</p>

<ol>
<li>if weight &lt; 7 then replace values with a</li>
<li>if weight > = 7 and  &lt;8 replace values with b</li>
<li>if weight >= 8 replace with c </li>
</ol>