Convert values in alternate rows of first n columns to negative

Can you paste all of the code you are using as well as any error message? Even better would be to use the reprex package!