title: How to convert character(0) to NA?
body: <p>I'm automating a data pull from a table. The automation process is a not concern, but the lack of certain data values in the table is. Reference the following code below.</p>
  
  <pre><code>levels(droplevels(table$Votes[table$Candidate == "David Anderson"]))
  </code></pre>
  
  <p>The table I'm pulling from looks like this: </p>
  
  <pre><code>120 NULL                         Jim Ireton Democratic   109
  121 NULL                         Joe Werner Democratic   280
  122 NULL                     Cheryl Everman Democratic   213
  123 NULL                      Lesley Israel Democratic   195
  124 NULL                     Amanda Jackson Democratic   227
  </code></pre>
  
  <p>The table is pulled automatically and doesn't always have the "David Anderson" data value, as you see in the table above. When that happens, the end result through this code (which is meant to clean the data to a singular value) is a character(0). I'm not sure why this happens, but when it does, it makes it impossible to stick the data value into the table I'm creating. I need that value to be NA, and I'm not sure how to get it there.</p>