trim_rows function

Trim Rows from Data Matrix Based on Borrowing object type