R Group By Vector Of Column Names, frame, but doesn't work in a data.