I have a raster with value ranging from 20-34 (r1). I want to create a new raster (r2) with value range from 0 to 1 from r1 that values of r2 are linear correlated with values of r1.
I have searched over and see "corgen" from ecodist package might be my solution in which I may set the correlation r=1 but I find no place to put the value range for the new raster.
Is there any other solution for my problem? Please help!