PermutePoints

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