Test first the file path with file.exists(), as the error says the file as
specified is not there.
On Tuesday, January 1, 2013, Luciano La Sala wrote:
> Hello,
>
> I have a raster image of human population counts. I saved the raster as
> .ASCII file using GRASS and now I need to open the file in
Hello,
I have a raster image of human population counts. I saved the raster as
.ASCII file using GRASS and now I need to open the file in R to do some
analyses. I tried using the function readGDAL in the rgdal package as
follows:
r <- readGDAL("~/myhome/thisdir/IhaveaFile.asc")
However, I get