RenumberRelations

RenumberRelations(R, P) returns the relation matrix whose relation numbers are permuted by P. If you want to use a list L instead of a permutation, then use PermList(L).