I want to split multiple raster into 4 equal segments, I found the splitRaster() function from the SpaDES package, which seems to do exactly this. However, it results in an error while executing.
This is my code:
library(raster) library(SpaDES.core) library(SpaDES.tools) library(SpaDES.addins) nx <- 2 ny <- 2 image <- raster('F:/IrSo/Thesis_IrSo/DATA/phenologymetrics/2018/2018_EVI_Sentinel/tiff/s2_20171202_evi.tif') image split_image <- splitRaster(images, nx, ny, path="F:/IrSo/Thesis_IrSo/DATA/phenologymetrics/2018/2018_EVI_Sentinel/tiff/1")
And this is my error message which appear exactly after I run the splitRaster line of code:
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘splitRaster’ for signature ‘"list"’