title: How to convert a character vector to numeric?
body: <p>I have this character vector but I need to convert this to numeric. </p>
  
  <pre><code>&gt;iono_test_y
  [1] "g" "b" "b" "g" "g" "g" "b" "g" "b" "b" "g" "b" "g" "b" "b" "b" "g" "g" "b" "b" "b" "g" "g"
  [24] "b" "b" "g" "g" "g" "b" "g" "g" "g" "b" "b" "b" "b" "b" "g" "g" "g" "g" "g" "b" "g" "b" "b"
  [47] "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g" "g"
  [70] "g" "g"
  </code></pre>
  
  <p>I already tried</p>
  
  <pre><code>iono_test_y &lt;- as.numeric(as.character(iono_test_y)
  </code></pre>
  
  <p>but it doesn't seem to work. How can I do that?</p>