title: R - How to test for character(0) in IF statement
body: <p>I imagine this is incredibly simple but I cant seem to find the answer.</p>
  
  <p>I am writing an IF statement but the test is if the object returns a <code>character(0)</code> value. I am not sure how to deal with <code>character(0)</code> in the statement.</p>
  
  <p>Assuming <code>Test &lt;- character(0)</code> or a value:</p>
  
  <pre><code>if (identical(Pols4,character(0))) {
    print('Empty')
  } else {
    print('Not Empty')
  }
  </code></pre>
  
  <p>It still does not seem to work.....</p>