title: R - svd() function - infinite or missing values in 'x'
body: <p>I am constantly getting this error. I am sure the matrix does not have any non-numeric entries. I also tried imputing the matrix, did not work.</p>
  
  <p>Anyone know what the error might be?</p>
  
  <pre><code>fileUrl &lt;- "https://dl.dropboxusercontent.com/u/76668273/kdd.csv";
  download.file(fileUrl,destfile="./kdd.csv",method="curl");
  kddtrain &lt;- read.csv("kdd.csv");
  kddnumeric &lt;- kddtrain[,sapply(kddtrain,is.numeric)];
  kddmatrix &lt;- as.matrix(kddnumeric);
  svd1 &lt;- svd(scale(kddmatrix));
  </code></pre>