title: Testing To See if Characters are Present in a Cell in R
body: <p>so I'm trying to find a code that will test to see if there is characters in a dataframe cell, if there is I want it to produce a binary variable with 1 if true and 0 if false. Here's what my data looks like:</p>
  <pre><code>Name
  Bob
  Joe
  
  Greg
  
  Hannah
  </code></pre>
  <p>Here is what I want it to look like</p>
  <pre><code>Name             True/False
  Bob                  1
  Joe                  1
                       0
  Greg                 1
                       0
  Hannah               1
  </code></pre>