Press F5 at the bar(s) and enter 2 at '# of beats this bar'. Do the same procedure to change back to 4.

R