Reputation: 7435
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.
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
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