Open mcomsa opened 2 weeks ago
Hi, this error message suggests that the unique() function is being applied to an object that is not a vector. This typically happens when the input to as.factor() is not in the expected format. Can you check if you are working with raster files and if there is no error beforehand? Also, are you running my script or you made changes? It would be good to know your package version of terra, too. Thanks!
Hi. Thank you for your help. After I had updated the packages I succeeded in running steps 1-5. Step 6 is running without visible error but also without changing the image resulting from step 5. Any ideas? Thank you again. I am running your script, the last R version (4.4.1) from RStudio, and the last version for all packages (terra 1.7-78).
Thank you for the tutorial. Any idea why I am getting this error?