Convert a grid from -Rd to -Rg

Is there a simple way to convert a grid from -Rd to -Rg and vice versa?

Update to a poorly worded question. I’m actually interested in changing from +/-180 to 0/360 but not necessarily on whole degree posts, e.g. I want to change my header from 0.04166666666/359.99583333333/-89.99583333333/89.99583333333 to -179.99583333333/179.99583333333/-89.99583333333/89.99583333333 and vice versa.

See grdedit -S with -R.