title: change in the column value while reading csv in R
body: <p>I have a csv file having data as follows-</p>
  
  <p><img src="https://i.stack.imgur.com/Ign5p.png" alt="enter image description here"></p>
  
  <p>Now the 3rd column Transaction has String element. Now I want to change the value Dr. to (0) and Cr. to (1) while importing this csv in R using read.csv.
  Is this possible in R or any trick I can include to make a change in a column while reading csv or I need to write a funcction which will read this particular column and then it will change the value to Dr.(0) and Cr.(1)</p>