title: R - Change value in one column based on NA value in another column
body: <p>I am working on a dataset which has information about the education of users. </p>
  
  <p>I want to change a value in the Freq column to "0" based on a NA value in Var1. So if Var1 = NA, then Freq = 0.  </p>
  
  <p><img src="https://i.stack.imgur.com/JTVj2.png" alt="See picture"></p>
  
  <p>For the life of me I can not figure it out and need some help.</p>
  
  <p>Do any of you guys know how to deal with this? </p>