forceNames function

Force names for rows, columns, or both