title: Normalising Data in R - I keep getting an error
body: <p>I keep getting an error when i am trying to normalise my data in R.
  I'm using this code:</p>
  
  <pre><code>normalize&lt;-function(x){
  return((x-min(x))/(max(x)-min(x)))
  }
  
  breastcancer&lt;-as.data.frame(lapply(breastcancer[,c(1,2,3,4,5,,6,7,8,9,10,11)],normalize)
  </code></pre>
  
  <p>and the error i get is:</p>
  
  <pre><code>Error in Summary.factor(c(7L, 2L, 1L, 2L, 2L, 3L, 2L, 3L, 3L, 10L, 10L,  : 
  ‘min’ not meaningful for factors
  </code></pre>