I am trying to learn the stars package in R, however I am working with data that is very high resolution. I know that that within the Raster package, doing the following:
aggregate(raster, factor = 4)
Would transform the raster from one that had a 30x30m resolution to one which was 120x120m, for example. Is there a similar way to perform this in stars? When I attempt the aggregate function on a stars object, I get the following error:
Error in inherits(by, "stars") : argument "by" is missing, with no default
However, I'm not certain what to aggregate by in this case, as I'm really just trying to reduce the overall resolution.