trim_cols function

Trim columns from Data Matrix Based on Borrowing object type