title: dplyr::recode warning message: "Unreplaced values treated as NA as .x is not compatible."
body: <p>I am currently having problems with R. I get really strange error warnings, I have no idea where they come from (even with code that formerly worked). Here just an example (sg1$einsprache is of class numeric):</p>
  
  <p>R-code:</p>
  
  <pre><code>table(sg1$einsprache, useNA='always')
  sg1$einsprache2&lt;-dplyr::recode(sg1$einsprache, "1='ja';2='nein'")
  table(sg1$einsprache2)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>&gt; table(sg1$einsprache, useNA='always')
     1    2 &lt;NA&gt; 
    92  835    0 
  &gt; sg1$einsprache2&lt;-dplyr::recode(sg1$einsprache, "1='ja';2='nein'")
  Warning message:
  Unreplaced values treated as NA as .x is not compatible. Please specify replacements exhaustively or supply .default 
  &gt; table(sg1$einsprache2)
  
  1='ja';2='nein' 
               92 
  </code></pre>
  
  <p>What can I try to solve this? Or if I enter <code>sg1</code> which is a tibble then I get the warning <code>Error in loadNamespace(name) : es gibt kein Paket namens ‘utf8’</code>  (there is no package called 'utf8')</p>
  
  <p>Another example:</p>
  
  <pre><code>&gt; sg1$einsprache2&lt;-NA
  Warning messages:
  1: Unknown or uninitialised column: 'strafe'. 
  2: Unknown or uninitialised column: 'strafe'. 
  3: Unknown or uninitialised column: 'strafe'. 
  4: Unknown or uninitialised column: 'strafe'. 
  5: Unknown or uninitialised column: 'gesetz'. 
  6: Unknown or uninitialised column: 'gesetz'. 
  7: Unknown or uninitialised column: 'gesetz'. 
  8: Unknown or uninitialised column: 'gesetz'. 
  9: Unknown or uninitialised column: 'gesetz'. 
  10: Unknown or uninitialised column: 'gesetz'.
  </code></pre>