public AttributeDataset range ( int from , int to ) { AttributeDataset sub = new AttributeDataset ( name + ' ' + from + ", " + to + ' ' , attributes , response ) ; sub . description = description ; for ( int i = from ; i < to ; i ++ ) { sub . add ( get ( i ) ) ; } return sub ; }
Returns the rows in the given range [ from to ) .