attributes.addElement(instanceInfo.attribute(current).copy());
Attribute keep = (Attribute)instanceInfo.attribute(current).copy(); if (keep.type() == Attribute.STRING) { inStrKeep[inStrKeepLen++] = current; } attributes.addElement(keep);
  public boolean inputFormat(Instances instanceInfo) throws Exception {    super.inputFormat(instanceInfo);        m_SelectCols.setUpper(instanceInfo.numAttributes() - 1);    // Create the output buffer    FastVector attributes = new FastVector();    int outputClass = -1;    m_SelectedAttributes = m_SelectCols.getSelection();    for (int i = 0; i < m_SelectedAttributes.length; i++) {      int current = m_SelectedAttributes[i];      if (instanceInfo.classIndex() == current) {	outputClass = attributes.size();      }      attributes.addElement(instanceInfo.attribute(current).copy());    }    Instances outputFormat = new Instances(instanceInfo.relationName(),					   attributes, 0);     outputFormat.setClassIndex(outputClass);    setOutputFormat(outputFormat);    return true;  }