rtrans is to take the $round(log(x)*100)$.
Note that this conversion may be lossy depending on the transform applied.
compress(file, fun = rtrans)
rtrans(x)
unrtrans(x)character path to file to be compressedrtrans(), which is round(log(x)*100.rtrans or untrans for conversion.writeRaster()rtrans: transform data to faciliate storing as an integer as $round(log(x)*100)$. unrtrans: uncompress data transformed with rtrans