role_dimension function

Transform a dimension into a role dimension