title: Replacing Column row values if it contains a string or character in R
body: <p>I am currently trying to change gender values in a dataframe column for consistency. 
  I currently have the following code, but it does not change any of the row values. It prints 'male' consistently for every value, but it does not update in the dataframe. </p>
  
  <pre><code>count &lt;- 0
  for(i in mySubset$Gender){
    count = count + 1
    if('Male' %in% i){
      mySubset$Gender[count] &lt;- 'male'
      print(mySubset$Gender[count])
    }
  }
  </code></pre>