Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
Error in .local(.Object, ...) :
Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", :
Cannot create a RasterLayer object from this file. (file does not exist)
Calls: <Anonymous> -> <Anonymous> -> .local -> .rasterObjectFromFile
Execution halted
Sorry for the confusion, the variable names are now all consistent. Previously, it was only soil_classes, but now your prompt should work fine too. I close this issue as I believe it is resolved.
I am trying this:
and will get this:
shapefile is attached. domain_cat.zip
edit: updated the script so it can be read directly on Graham the input shapefile