I want to align them in R, so that both have -180, 180. I tried several functions such as resample(), projectRaster(), or alignExtent() but all seem to give the right extent, but will basically show only half of the values, i.e. it looks like half of the world disappeared in the new plot.

Which function should I use instead? What is the name of the operation I want to do?