public Table dropRowsWithMissingValues ( ) { Selection missing = new BitmapBackedSelection ( ) ; for ( int row = 0 ; row < rowCount ( ) ; row ++ ) { for ( int col = 0 ; col < columnCount ( ) ; col ++ ) { Column < ? > c = column ( col ) ; if ( c . isMissing ( row ) ) { missing . add ( row ) ; break ; } } } Selection notMissing = Selection . withRange ( 0 , rowCount ( ) ) ; notMissing . andNot ( missing ) ; Table temp = emptyCopy ( notMissing . size ( ) ) ; Rows . copyRowsToTable ( notMissing , this , temp ) ; return temp ; }
Returns only those records in this table that have no columns with missing values