title: Adding an instance to Instances in weka
body: <p>I have a few arff files. I would like to read them sequentially and create a large dataset. Instances.add(Instance inst) doesn't add string values to the instances, hence the attempt to setDataset() ... but even this fails. Is there a way to accomplish the intuitively correct thing for strings?</p>
  
  <pre><code>                ArffLoader arffLoader = new ArffLoader();
                  arffLoader.setFile(new File(fName));
                  Instances newData = arffLoader.getDataSet();
                  for (int i = 0; i &lt; newData.numInstances(); i++) {
                          Instance one = newData.instance(i);
                          one.setDataset(data);
                          data.add(one);
                  }
  </code></pre>