title: How can I train s neuronal network in r using AMORE
body: <p>I'm trying to train a neural network (NN) in RStudio using "AMORE", but my dataset has non numeric attributes.</p>
  
  <p>I use this:</p>
  
  <pre><code>library("AMORE", lib.loc="/usr/lib/R/site-library")
  redNeuronal&lt;-newff(n.neurons=c(6,8,7,2), learning.rate.global=1, momentum.global=0.5, error.criterium="LMS", Stao=NA, hidden.layer="tansig", output.layer="purelin", method="ADAPTgdwm")
  train(redNeuronal, experimentacion, experimentacion$Expected, Pval=NULL, Tval=NULL, error.criterium="LMS", report=TRUE, TRUE, 50, Stao=NA,prob=NULL)
  </code></pre>
  
  <p>Where <code>experimentacion</code> is my dataset with 20 variables and <code>Expected</code> is the variable I want to predict from the other 19 (my test dataset has only the other 19 variables and has to be able to predict <code>Expected</code>)</p>
  
  <p>This is the error it throws:</p>
  
  <pre><code>Error in train.method(net, P, T, show.step) : 
     REAL() can only be applied to a 'numeric', not a 'character'
  </code></pre>
  
  <p>Why does this error occur?</p>