Vedda
Vedda

Reputation: 7435

Raster and file does not exist

I'm completely lost on this as the file exists in the directory and my previous code has worked fine. But for whatever reason I'm getting this error:

Error: file.exists(filename) is not TRUE

I found a question/answer but it didn't work.

Data

Code :

library(raster)
r1 = raster("/.../PRISM_tmin_stable_4kmM2_189501_bil.bil")

Any suggestions why this is giving me file does not exist?

Upvotes: 0

Views: 1067

Answers (1)

Vedda
Vedda

Reputation: 7435

As @Pascal pointed out, the *.hdr files need to be included in the directory of the *.bil file. Then the raster object can be loaded.

Upvotes: 1

Related Questions