title: Converting R file to Stata with missing string values
body: <p>I am getting an error while converting R file into Stata format. I am able to convert the numbers into 
  Stata file but when I include strings I get the following error:</p>
  
  <pre><code>library(foreign)
  write.dta(newdata, "X.dta")
  
  Error in write.dta(newdata, "X.dta") : 
    empty string is not valid in Stata's documented format
  </code></pre>
  
  <p>I have few strings like location, name etc. which have missing values which is probably causing this problem. Is there a way to handle this? .</p>