Changing variable RR to rows