title: remove specific attributes(columns) of weka instances
body: <p>I've done kind of attribute selection(Information gain) in Weka. After that it returns new data with the new arrange of attributes due to the importance of each attribute within information gain method. I want to remove one or more columns of new data to just have informative attribute in my dataset.
  Here you can see my code:</p>
  
  <pre><code>    Instances data = new Instances(new BufferedReader(new FileReader("iris.arff")));
  
      InfoGainAttributeEval eval = new InfoGainAttributeEval();
      Ranker search = new Ranker();
  
      AttributeSelection attSelect = new AttributeSelection();
      attSelect.setEvaluator(eval);
      attSelect.setSearch(search);
      attSelect.SelectAttributes(data);
  
      int[] indices = attSelect.selectedAttributes();
  
      data = attSelect.reduceDimensionality(data); //re-arrange attributes but not remove them
  </code></pre>
  
  <p>Thanks in advance!</p>