Error on EX1<-stack("EX1_RGB.tif")

Hello all! I am trying out FIELDimageR and am having trouble loading the sample image (and my own image). I’m getting the following error when running EX1<-stack(“EX1_RGB.tif”): “Error in data.frame(values = unlist(unname(x)), ind, stringsAsFactors = FALSE) : arguments imply differing number of rows: 1, 0”

I’m not sure how to proceed.

I’ve attached the following screen shot that shows the error:

Hi Schnaufer.

I had same problem and it was because I hadn’t set the working folder. did you?

Thanks for your reply jkairo. Yes, I have called setwd() to my home folder, where the files are located. I have also made sure that I have the correct permissions to access the files.

Update: I recreated the environment and that has resolved the problem. It looks like my errors were caused by a bad setup.

Hi @schnaufer,

Seems that you are not calling the packages. Did you use library(raster) and library(FIELDimageR) before everything?

All the best,

Hello everybody!
I have a question? What is the folder o direction in the save the image? When I try open the tiff I had that problem.
This message is

Error in h(simpleError(msg, call)) :
error in evaluating the argument ‘x’ in selecting a method for function ‘plotRGB’: objeto ‘EX1’ no encontrado

Hi Giova,

Could you share your command line, please?


1 Like