ru_groupbyvars function

Modify groupbyvars by adding or removing decode vars.